Bug #72682 [Com]: exif_read_data() fails to read all data for some images

From: Date: Thu, 11 Apr 2019 09:04:00 +0000
Subject: Bug #72682 [Com]: exif_read_data() fails to read all data for some images
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220397@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72682&edit=1 ID: 72682 Comment by: johny dot de dot witte at gmail dot com Reported by: r dot helm at helm-software dot de Summary: exif_read_data() fails to read all data for some images Status: Closed Type: Bug Package: EXIF related PHP Version: 7.0.9 Assigned To: kalle Block user comment: N Private report: N New Comment: This problem persists in PHP 7.2. Photos from DJI Mavic Air Previous Comments: ------------------------------------------------------------------------ [2018-01-04 15:52:27] kalle@php.net Given the 5.x series is in security mode, the only way to get this fixed is by upgrading to 7.2 (where this bug and a lot of others are fixed) ------------------------------------------------------------------------ [2018-01-04 15:24:45] antonin dot roussel at laposte dot net PHP Version 5.6.32 Got 5 Canon pictures which thumbnail don't load in exif_thumbnail, nor in exif_read_data. To read IFD0.Make exif tag, you can use "exiftool -make *.jpg" Make : Canon Event after reprocessing the thumbnail with "exiftran -g -ip *.jpg" the problem persists. When replacing IFD0.Make string "Canon" with "canon", the thumbnail can be loaded. "exiftool -make=canon your_Canon_picture.jpg" PEL PHP Exif Library also allows you to edit IFD0.Make field Don't know all possible consequences of this edit. ------------------------------------------------------------------------ [2017-01-12 09:12:58] krakjoe@php.net Automatic comment on behalf of kalle Revision: http://git.php.net/?p=php-src.git;a=commit;h=c6bd054b86c52948505be7409ad8d6488db062f6 Log: Fixed bug #72682 (exif_read_data() fails to read all data for some images) ------------------------------------------------------------------------ [2016-11-23 12:09:56] php at barryhunter dot co dot uk Think have the same issue, and have a test case that still fails: http://cake.geograph.org.uk/exif/_exif_test-andrew.php This image: http://cake.geograph.org.uk/exif/IMG_6216.org.JPG still fails to read completely. Stipping the makernote from the image (via exiftool), allows the full data to be see by exif_read_data function. Its a image from a Canon camera. This is against 5.6.28, but the original issues, and potential fix appear to be backported. ------------------------------------------------------------------------ [2016-10-10 11:17:47] krakjoe@php.net Automatic comment on behalf of kalle Revision: http://git.php.net/?p=php-src.git;a=commit;h=c6bd054b86c52948505be7409ad8d6488db062f6 Log: Fixed bug #72682 (exif_read_data() fails to read all data for some images) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72682 -- Edit this bug report at https://bugs.php.net/bug.php?id=72682&edit=1

« previous php.bugs (#220397) next »