Bug #72914 [Com]: Error parsing EXIF data - IFD data bad offset: 0xFFFFFD32 length 0x1EC2
Edit report at https://bugs.php.net/bug.php?id=72914&edit=1
ID: 72914
Comment by: sunkan+bugs dot gnu at zappa dot cx
Reported by: sunkan+bugs dot gnu at zappa dot cx
Summary: Error parsing EXIF data - IFD data bad offset:
0xFFFFFD32 length 0x1EC2
Status: Open
Type: Bug
Package: EXIF related
Operating System: Linux
PHP Version: 5.6.25
Block user comment: N
Private report: N
New Comment:
Test image file can be downloaded here (resized from original with GIMP, but still fails like the
original file):
https://zappa.cx/~sunkan/IMG_5888_small.JPG
Previous Comments:
------------------------------------------------------------------------
[2016-08-21 20:16:01] sunkan+bugs dot gnu at zappa dot cx
Description:
------------
Thumbnails from my Canon 100D camera can no longer be extracted from the EXIF data.
The test script will only output an error when using PHP 5.6.24 or 5.6.25:
With PHP 5.6.23 it is working (as it always has been for me) and EXIF data including thumbnail is
being output.
Test script:
---------------
print_r( exif_read_data( "/tmp/IMG_5888_small.JPG", "THUMBNAIL" ) );
Expected result:
----------------
Output EXIF data with no error
Actual result:
--------------
This warning is being output and no EXIF data (if requiring the thumbnail or using another function
to extract the thumbnail):
Warning: exif_read_data(IMG_5888_small.JPG): IFD data bad offset: 0xFFFFFD32 length 0x1EC2 in
/tmp/exif.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72914&edit=1
Thread (6 messages)