Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate pngquant when exporting to PNG #1365

Closed
4 tasks done
eduardomozart opened this issue Nov 11, 2022 · 6 comments
Closed
4 tasks done

Integrate pngquant when exporting to PNG #1365

eduardomozart opened this issue Nov 11, 2022 · 6 comments

Comments

@eduardomozart
Copy link

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

It would be great if image captured from video could be optimized by pngquant after being exported. JPEG makes the captured image loose quality, and PNG files are so big, so compressing them using pngquant would make a file with a great size and quality.

@mifi
Copy link
Owner

mifi commented Jan 6, 2023

next version will now allow setting a custom jpeg quality parameter. as for png, maybe we can use https://github.com/psych0der/pngquantjs

@Freso
Copy link

Freso commented Feb 19, 2024

I personally use PNG to save/export lossless screenshots, but pngquant is specifically for lossy compression of PNGs. It may be “invisibly” lossy, but it’s lossy none‐the‐less. optipng (or the oxipng fork) seems like a better option to interface with… but I usually just run optipng myself.

If you decide to incorporate pngquant please make it clear that using that will result in a lossy screenshot.

@eduardomozart
Copy link
Author

Talking with Shottr developer he said that there's no interface with PNGQuant itself and it's complicated to run executables on macOS Sandbox. Maybe optipng (or the oxipng fork that is used by ImageOptim) can be a better choice at all.

@mifi
Copy link
Owner

mifi commented Feb 21, 2024

TBH now that we can adjust jpeg quality in losslesscut, I'm not sure what's the advantage of pngquant lossy png vs jpeg with 100% or so quality, so I'm inclined to close this

@eduardomozart
Copy link
Author

eduardomozart commented Feb 21, 2024

JPEG has a larger file size than PNG relative to it's quality. JPEG files seem blurry and loose color, while PNG doesn't. Lossless Cut doesn't seem to optimize the PNG it produces and they have a higher size than they could without loosing visible quality. Using optipng would allow better quality screenshots with lower file size and pratically no noticeable quality loss.

@mifi
Copy link
Owner

mifi commented Feb 28, 2024

I've added the suggestion here: #1908

@mifi mifi closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants