It wouldn’t surprise me if Cloudflare doesn’t do AVIF conversion for larger images due to the amount of processing it takes. I think @eva2000 has experimented with AVIF conversion.
I have a Worker doing image resizing, and it works fine with AVIF format above 1024. They are very slow to generate, so best to do them asynchronously.
Thank you guys, I have an official reaction from the support team. There is a fallback to WEBP.
Image must be below 2 megapixels for AVIF to be allowed, and that’s probably a good idea for performance-sensitive images anyway. We are making some changes which would improve AVIF encoding and allow AVIF irrespective of the image size, this might take a while until the feature becomes available on Cloudflare.