rosell-dk / webp-convert

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

"auto-filter" option was called "autofilter" in older ImageMagick versions #301

Closed rosell-dk closed 2 years ago

rosell-dk commented 2 years ago

"auto-filter" option was called "autofilter" in older ImageMagick versions. Also, it changed from Integer value to boolean. This is apparent in this commit: https://github.com/ImageMagick/ImageMagick/commit/d6f2cc4f8bde78b8378102eb62975106abf60bfc

Set it accordingly

rosell-dk commented 2 years ago

Actually, it was called "auto-filter" in 6.9.12-25: https://github.com/ImageMagick/ImageMagick6/blob/6.9.12-25/coders/webp.c https://github.com/ImageMagick/ImageMagick6/blob/6.9.12-25/www/webp.html

rosell-dk commented 2 years ago

It was also called "auto-filter" in 6.9.4-0 (which seems to be the first ImageMagick release on github). And that version also used ParseCommandOption(MagickBooleanOptions, MagickFalse,value); rather than StringToInteger(

So it seems it was just a glitch, which was never released.