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

Change output filename #61

Closed jenstornell closed 5 years ago

jenstornell commented 6 years ago

In some cases we may not want to overwrite the original. Maybe an option could be to change the filename or add a suffix for it?

psliwa commented 5 years ago

I added a new option: output_filepath_pattern - it will be available from 2.0.0 version (will be released soon).