imagemin / imagemin-webp

WebP plugin for imagemin
MIT License
496 stars 45 forks source link

Skips files without savings? #13

Open bjoernsteinborn opened 6 years ago

bjoernsteinborn commented 6 years ago

It seems like the input file gets outputted if there are no possible filesize savings. Is this behaviour intended? Can i force the webp creation somehow?

bjoernsteinborn commented 6 years ago

It's this line which prevents the webp conversion if the webp is not smaller than the input image (KB): https://github.com/imagemin/imagemin/blob/master/index.js#L24 I get the reason behind but still it makes imagemin-webp working very unreliable.