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
906
stars
141
forks
source link
Fixed the bug that the copied files were not deleted when the optimization failed #77
When configured
output_filepath_pattern
which changed output path, the optimizer copied the file but doesn't deleted it when optimize failed.today I create a demo with the following code:
it copied two files:
Thanks.