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

From: Date: Thu, 04 Jan 2018 15:24:49 +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-213368@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: antonin dot roussel at laposte dot net 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: 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. Previous Comments: ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ [2016-08-22 07:44:01] sina dot raudszus at heg dot com as stated in the last comment from [2016-08-03 13:51 UTC] it is not fixed. we've got customers who complain about it. could you do something about this please? ------------------------------------------------------------------------ [2016-08-03 15:33:34] kalle@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 (#213368) next »