gd_info() shows WebP Support => 1 but AVIF Support => false.
Can you tell me whether AVIF support for PHP/GD is available on any of the new shared‑hosting offers, Startup or Pro? Or is it absent across the entire OVH shared‑hosting range?
I’m specifying that I’m not only talking about serving .avif files via Apache/AddType, but about generating AVIF files on the PHP side with imageavif().
I’m on PHP 8.2. I could also try PHP 8.3, 8.4 or 8.5, apparently. But I doubt that would change anything: imageavif() has existed since PHP 8.1… The problem seems more likely to come from GD being compiled without AVIF/libavif support on the shared hosting.
Maybe someone can confirm that they’re on an OVH shared‑hosting plan and that AVIF encoding works fine on their server with PHP 8.x?
Thanks, but I think I'm going to drop the idea of generating my images in AVIF via PHP/GD on an OVH shared hosting. According to my tests, it seems PHP/GD is not compiled with AVIF support on my current plan. I'm indeed talking about generating AVIF images on the PHP side with imageavif(), not just serving .avif files.
The lack of this support on shared hosting may be related to the resources required for AVIF encoding, which I could understand. But it's a pity, because this format often provides very good size savings compared to JPEG or WebP… and that won't help the adoption of this “new” format.
So for AVIF compression/generation via PHP/GD on OVH Personal, it’s not available. At least on this plan apparently, which is why I’m asking about the other shared‑hosting offers.