[php-src] PR #22491: Fix GH-20863: read HEIC/HEIF dimensions for grid and Exif-only images
| From: | iliaal | Date: | Sat, 27 Jun 2026 18:59:09 +0000 |
| Subject: | [php-src] PR #22491: Fix GH-20863: read HEIC/HEIF dimensions for grid and Exif-only images | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36699@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22491
Author: iliaal
getimagesize() returns false for most camera-produced HEIC files: they are grid images whose primary
item carries the full-size ispe, but libavifinfo drops that association once the tile items fill its
32-entry ipma table. This reserves a few ipma slots for the primary item. Some files also expose no
bit-depth property, so libavifinfo declines even with a valid ispe; for those the dimensions come
from the embedded Exif item. The avifinfo.c change is to vendored code; I'll propose it to
libavifinfo upstream too.
Fixes #20863