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
906 stars 141 forks source link

bug fix path in windows #84

Open mbpcoder opened 2 years ago

mbpcoder commented 2 years ago

windows have different characters for the directory separator when we run the optimizer on windows sometimes $outputChanaged will be true and the original image will be deleted

mad-briller commented 2 years ago

@mbpcoder this repo i believe is dead at this point, i would recommend looking into this alternative: https://github.com/spatie/image-optimizer