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

Supports [ncolors] argument as option #59

Open
fabianmichael opened this issue May 22, 2019 · 0 comments
Open

Supports [ncolors] argument as option #59

fabianmichael opened this issue May 22, 2019 · 0 comments

Comments

@fabianmichael
Copy link

fabianmichael commented May 22, 2019

pngquant supports an additional argument after passing the options, called [ncolors] for setting the palette size. For advanced optimization, it would be useful to have this available as an option:

pngquant [options] [ncolors] -- pngfile [pngfile ...]

Use cases are black-and white illustrations, such as icons, drawings or line-art, where a palette of 256 colors does not bring any noticable increase in quality over a smaller palette of e.g. 16 or 32 colors.

I would propose to add an option called colors or ncolors to the plugin to make this option available in imagemin.

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

1 participant