Req #80828 [Com]: Add support for AVIF and HEIF
| From: | benjamin dot frugoni at gmail dot com | Date: | Mon, 05 Jul 2021 06:58:14 +0000 |
| Subject: | Req #80828 [Com]: Add support for AVIF and HEIF | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234799@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80828&edit=1
ID: 80828
Comment by: benjamin dot frugoni at gmail dot com
Reported by: martin at auswoeger dot com
Summary: Add support for AVIF and HEIF
Status: Open
Type: Feature/Change Request
Package: GD related
PHP Version: 7.4.15
Block user comment: N
Private report: N
New Comment:
This should have started the moment Android and Microsoft said that this format would be natively
accepted, or when Safari included HEIF or when the whole 67% of navigators said they would support
it.
I thought we would be ahead of the curve, not trailing behind it. But we're still on time if we
use the GD binaries
Previous Comments:
------------------------------------------------------------------------
[2021-03-17 22:04:44] morss at google dot com
Martin, I'm planning to port over the AVIF support from gd. Maybe you'd like to work on
the HEIF support?
Meanwhile, getimagesize() support for AVIF is being discussed in https://github.com/php/php-src/pull/5127.
------------------------------------------------------------------------
[2021-03-15 22:04:51] morss at google dot com
See also discussion of the getimagesize() problem here:
https://github.com/php/php-src/pull/5127
------------------------------------------------------------------------
[2021-03-15 22:02:53] morss at google dot com
Not to mention request #78832.
------------------------------------------------------------------------
[2021-03-04 10:22:46] cmb@php.net
See also request #77757.
------------------------------------------------------------------------
[2021-03-04 09:27:03] martin at auswoeger dot com
Description:
------------
Support for AVIF and HEIF was recently added to libgd:
https://github.com/libgd/libgd/commit/f2aa2836ed910ca3510585a47a8a064b5140e148
https://github.com/libgd/libgd/commit/39c4644fa01f6b9f002119e4109e252bc665b8f1
It would be great if the following functions could be implemented in the PHP GD extension:
imageavif()
imageheif()
imagecreatefromavif()
imagecreatefromheif()
As well as adding support for the new formats in getimagesize() and similar functions and adding the
constants IMAGETYPE_AVIF and IMAGETYPE_HEIF.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80828&edit=1