Thats great, however not all hosts are hot on keeping these things up to date. Avif is fairly new and webp is a little older. its possible to have hosting that has IM installed but its not quite new enough to have AVIF support but does have WebP support.
I think you are on a mac. If you go in your applications and run the app called terminal you can do the command @texnixe described and also php -i | grep AVIF
Your hosting control panel (like cPanel maybe) might have a sever side terminal you can use to check things out. you can run those commands there too.
My larger responsive thumbs (in terms of pixels) are considerably larger than my original images (in terms of KB). Which I find hard to understand how that can happen. Surely if the original file is seriously compressed, then smaller thumbs canāt be finding image quality that isnāt there.
And getting ImageMagick to work is well beyond my small brain. I think Iāll have to stick to the default and accept that half of my thumbs are larger and half smaller, than my original images. You win some, you lose some!
Iāll move on now to trying to get Kirby to convert my JPEGs and PNGs to AVIF and WebP. I have a feeling this will take another day of my life, just trying to get that to work, and a lot of help on this forum!
Thatās probably exactly the point, thatās why I already suggested a few posts above, to play around with the quality settings of the thumb() method to achieve smaller thumb results.
Iām contacting my host and asking them if their system can convert my JPEG and PNG files to AVIF and WebP. If they can, is the following code correct?
Sure. Now I know that first bit of code is correct Iāll try it on my server and see what happens. Hopefully I wonāt have to change the path. Thanks