rosell-dk / webp-convert

Convert jpeg/png to webp with PHP (if at all possible)
MIT License
578 stars 102 forks source link

Quality detection sometimes returns 0 #208

Closed rosell-dk closed 5 years ago

rosell-dk commented 5 years ago

See https://wordpress.org/support/topic/distorted-image-if-we-use-already-optimized-images-in-jpeg/

In short, the problem is that Imagick returns 0 when it cannot detect the quality of an image. We must treat that 0 as a failure to detect.

rosell-dk commented 5 years ago

Fixed in b28ce7f