psliwa / image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
MIT License
909 stars 141 forks source link

Always run all optimizers #8

Closed lkorth closed 7 years ago

lkorth commented 9 years ago

With the option to pass arguments to optimizers (#7) the second optimizer may optimize the image more and should not be skipped.

psliwa commented 7 years ago

I added two configuration options: execute_only_first_png_optimizer and execute_only_first_jpeg_optimizer. The default values are the same as they were, so if you want to sacrifice optimization performence, you can do that explicitly.

drn5910 commented 7 years ago

Do you know when this will be tagged in a release? The documentation says these options are available, but when pulling a tagged release version it says the options do not exist (and they aren't in code).

psliwa commented 7 years ago

@david-ridgeonnet I've just released 1.1.0 version.