[php-src] PR #22213: Add WebP support to ext/exif
| From: | iliaal | Date: | Tue, 02 Jun 2026 21:58:04 +0000 |
| Subject: | [php-src] PR #22213: Add WebP support to ext/exif | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36281@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22213
Author: iliaal
WebP keeps EXIF metadata in a RIFF
EXIF chunk whose payload is a raw TIFF block, the
same bytes a JPEG carries after its APP1/Exif\0\0 marker, so
exif_read_data() can read it by handing the chunk to the existing
exif_process_TIFF_in_JPEG() parser, with no new dependency. Chunk scanning is bounded
by the declared RIFF size, the EXIF chunk is accepted whether or not the VP8X
extended-format flag is set, and an optional leading Exif\0\0 marker is tolerated. The
phpinfo supported-filetypes line now lists what exif actually parses (it was missing HEIF too).
Fixes #19904