Is AVIF support (PHP/GD, imageavif) available on the new shared Startup or Pro plans?

Hello,

On an OVH Perso shared hosting, PHP 8.2.29, I get this result:

imageavif exists? bool(false)
AVIF Support? bool(false)

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().

Thanks.

Hello @Sebastien37,

I invite you to share log excerpts so that the community can guide you.

^FabL

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?

Hello,

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.

Thanks anyway.

Best regards,

Seb

Just for info, I just tested by switching to version 8.5 Prod.

No other way to verify, because the help center lists the available PHP versions but provides zero information on AVIF, libavif or imageavif.

The result is identical:

PHP: 8.5.0
imageavif exists? bool(false)
GD loaded? bool(true)

gd_info():
Array
(
    [GD Version] => bundled (2.1.0 compatible)
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] => 1
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 1
    [XBM Support] => 1
    [WebP Support] => 1
    [BMP Support] => 1
    [AVIF Support] => 
    [TGA Read Support] => 1
    [JIS-mapped Japanese Font Support] => 
)

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.

Hi,

GD is really not recommended for manipulating images (for ages).
Is there no imagik available on the mutus?

Hi and thanks for your reply.

I just tested: Imagick is indeed available, but AVIF is not supported on that side either.

So maybe the lib isn’t up to date for AVIF.