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

Add More Options For pngquant #195

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add More Options For pngquant #195

wants to merge 9 commits into from

Conversation

dirceu-jr
Copy link

I did some trial and error on using pngquant through this Ruby gem (image_optim) and through command line and how its results compare to TinyPNG/Kraken/ImageAlpha+ImageOptim.

It seems to me that these tools use a custom value on the --floyd option of pngquant. The manual page says about --floyd: Set dithering level using fractional number between 0 (none) and 1 (full, the default).

So through this Pull Request I add the possibility to define a custom value for the --floyd option.

I also added the possibility to use --nofs and --strip options.

@toy
Copy link
Owner

toy commented Oct 17, 2021

Thank you for contribution!

Just started checking and pngquant --help says nothing about --floyd switch 🤷
I need to check how this affects losslessness of optimisation, as maybe it is better to mark pngquant as lossy by default.

Please don't change version in gemspec, this always goes as a separate commit.

@dirceu-jr
Copy link
Author

Thank you for contribution!

Just started checking and pngquant --help says nothing about --floyd switch 🤷 I need to check how this affects losslessness of optimisation, as maybe it is better to mark pngquant as lossy by default.

Please don't change version in gemspec, this always goes as a separate commit.

Check man pngquant

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

Successfully merging this pull request may close these issues.

2 participants