Bug #72682 [Com]: exif_read_data() fails to read all data for some images
| From: | johnny at kattouf dot com | Date: | Thu, 23 Apr 2020 21:26:21 +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-226747@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: johnny at kattouf 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:
Hello,
Having similar issue with Images from Sony Camera processed through DXO Labs.
Exif it not reading keywords and title in 7.2 7.3 and 7.4.5
Works fine when i switch to 5.6
using this to test but result are partial:
<?php
$exif_info1 = @exif_read_data( "test1.jpg", 0, true );
var_dump($exif_info1);
;
?>
https://ibb.co/BGHDqcf
https://ibb.co/gr7jfmn
thanks
/J
Previous Comments:
------------------------------------------------------------------------
[2019-04-11 09:04:00] johny dot de dot witte at gmail dot com
This problem persists in PHP 7.2.
Photos from DJI Mavic Air
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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