Imagick / imagick

🌈 The Imagick PHP extension 🌈
http://pecl.php.net/imagick
Other
548 stars 138 forks source link

Where can I see in the code what arguments are accepted by setOption()? #621

Open johnnyApplePRNG opened 1 year ago

johnnyApplePRNG commented 1 year ago

I am struggling to grasp what options are available to me to use when working with webp files and imagick.

I am running version 6.9.11-60 on Debian 12.

I tried searching for "webp:method" and "webp:lossless" in the codebase (which I have verified to work with imagick) as I was hoping to find some code showing how exactly I could get some version of "webp:target-size" to work but I can't find anything.

Where is the option argument code hiding?

Thanks!

Danack commented 1 year ago

Imagick is just a thin-ish wrapper around ImageMagick itself.

In particular you probably want to look in this file: https://github.com/ImageMagick/ImageMagick/blob/main/coders/webp.c

And if you wanted to make notes on what options are available, and put them here, that would be great.