imagemin / imagemin-optipng

optipng plugin for imagemin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I add to this plugin optional argument '-nx'?

opened this issue · comments

From user manual:
−nx Do not apply any lossless image reduction: enable the options −nb, −nc and −np.

What's the point of using this plugin if you're gonna disable the minifying?

This setting doesn't disable the minifying at all, it just disables image reduction. It's pretty similar to optimizationLevel: 0, but gives less size when it's using with optimizationLevel: 3.

Or better to add 3 optional arguments:

−nb Do not apply bit depth reduction.
−nc Do not apply color type reduction.
−np Do not apply palette reduction.

because −nx enables all them: −nb, −nc and −np.

Sure. PR welcome. The options should use a real words, no acronyms, and come with doc changes.