rosell-dk / webp-convert

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

ImageMagick and Imagick converters should log if a supplied option isn't supported in that particular version #300

Closed rosell-dk closed 2 years ago

rosell-dk commented 2 years ago

It is already done with the "near-lossless" option. We should do it with all options.

rosell-dk commented 2 years ago

sharp-yuv was introduced in this commit: https://github.com/ImageMagick/ImageMagick/commit/aa5bcab23fe09e317eea0fc8775df6452ba90471 It can be seen from that page that the lowest tag is 7.0.8.26

rosell-dk commented 2 years ago

PS: I found the commit using git log -S 'webp:sharp-yuv'

rosell-dk commented 2 years ago

auto-filter: https://github.com/ImageMagick/ImageMagick/commit/d6f2cc4f8bde78b8378102eb62975106abf60bfc

But look, it used to be called "autofilter" (without dash), and it used to be parsed as integer. Created a new issue for that: https://github.com/rosell-dk/webp-convert/issues/301 And look, lossless also changed data-type. New issue: https://github.com/rosell-dk/webp-convert/issues/302

edit: Whoopsie, it is actually available in 6.9.4-0 (cannot see further back): https://github.com/ImageMagick/ImageMagick6/blob/6.9.4-0/www/webp.html

rosell-dk commented 2 years ago

low-memory: >=7.0.1-0 - https://github.com/ImageMagick/ImageMagick/commit/9bb4d7a8ba1509ea57a271cddc561e7d621175ec

edit: Whoopsie, it is actually available in 6.9.4-0 (cannot see further back): https://github.com/ImageMagick/ImageMagick6/blob/6.9.4-0/www/webp.html

rosell-dk commented 2 years ago

alpha-quality, method, image-hint (preset) and a lot of other webp options was introduced in this commit: https://github.com/ImageMagick/ImageMagick/commit/e71e0898f486774f30927bd9b934d165d137cfa4 (7.0.1-0)

edit: Whoopsie, they are actually available in 6.9.4-0: https://github.com/ImageMagick/ImageMagick6/blob/6.9.4-0/www/webp.html

rosell-dk commented 2 years ago

The 7.0.0-1, release: https://github.com/ImageMagick/ImageMagick/tree/7.0.0-1 webp.c in the release: https://github.com/ImageMagick/ImageMagick/blob/7.0.0-1/coders/webp.c webp.html in the release: https://github.com/ImageMagick/ImageMagick/blob/7.0.0-1/www/webp.html

rosell-dk commented 2 years ago

The 6.9.12-25 release: https://github.com/ImageMagick/ImageMagick6/tree/6.9.12-25 webp.c in the release: https://github.com/ImageMagick/ImageMagick6/blob/6.9.12-25/coders/webp.c webp.html in the release: https://github.com/ImageMagick/ImageMagick6/blob/6.9.12-25/www/webp.html

rosell-dk commented 2 years ago

The 6.9.4.0 release (first on github): https://github.com/ImageMagick/ImageMagick6/tree/6.9.4-0 webp.c in the release: https://github.com/ImageMagick/ImageMagick6/blob/6.9.4-0/coders/webp.c webp.html in the release: https://github.com/ImageMagick/ImageMagick6/blob/6.9.4-0/www/webp.html