|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78832 Support for avif format
Submitted: 2019-11-18 18:00 UTC Modified: 2019-11-18 18:04 UTC
From: vincent dot enjalbert at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
15 + 24 = ?
Subscribe to this entry?

 [2019-11-18 18:00 UTC] vincent dot enjalbert at gmail dot com
I know the support is still almost inexistant.... Just supported in Windows10 since May, and no browser supports it atm, as far as I know. (There is however a polyfill :
But the AVIF format was born earlier this year, and support will probably arrive soon everywhere (AOM initiative, from google, mozilla, apple, etc...)
The promise of this format is big, and it should - finally - be a real replacement for our current outdated formats (jpg, ..).

avif spec :
libavif :


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-18 18:04 UTC]
-Status: Open +Status: Not a bug
 [2019-11-18 18:04 UTC]
GD is actually a separate project from PHP.
 [2021-03-06 22:21 UTC] apostnikov at gmail dot com
PHP has bundled libgd so it could use update to which added AVIF & HEIF support
 [2021-03-08 23:21 UTC] morss at google dot com
The nice thing is that desktop Chrome, Firefox, and Opera now support AVIF, at least for single images (not animations):

I assume Chrome for Android support is on the way, and since this work has involved many companies, I don't think we'll have to wait as long as we did for WebP for other browsers.

Talking to PHP core maintainers this weekend, I learned that PHP's GD is a fork of libgd. So we need to adapt the new gd_avif.c (
 [2021-03-08 23:29 UTC] morss at google dot com
Tiny update: just learned that Chrome for Android does in fact support AVIF as of version 89. That brings the share of users whose browser supports AVIF up above 60%.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Sep 26 09:05:56 2022 UTC