Bug #72772 [NoF->Csd]: EXIF data not read from jpeg
| From: | clive at indx dot co dot uk | Date: | Tue, 23 Aug 2016 14:26:42 +0000 |
| Subject: | Bug #72772 [NoF->Csd]: EXIF data not read from jpeg | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203513@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72772&edit=1
ID: 72772
User updated by: clive at indx dot co dot uk
Reported by: clive at indx dot co dot uk
Summary: EXIF data not read from jpeg
-Status: No Feedback
+Status: Closed
Type: Bug
Package: EXIF related
Operating System: Linux web25 4.4.10-20160518-1030
PHP Version: 5.6.24
Block user comment: N
Private report: N
New Comment:
Sorry, I can't test with 7.10 - I've tried building it on my own systems but without
success. My hosting provider offers 7.0.9, and this shows the same issues as I've noted with
the 5.6.24 bug I've reported.
An update to this is that if I open an image with Photoshop, take out the EXIF information that I
don't need (I only need the GPS-related data) then save, the GPS data is read ok. So it appears
that it's an EXIF format issue, or some field that exif_read_data cannot parse.
However, this isn't a solution for me, as I have over 12,000 images.
Previous Comments:
------------------------------------------------------------------------
[2016-08-14 04:22:34] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2016-08-07 03:38:01] kalle@php.net
Could you please confirm if this happens with the release of PHP 7.0.10 where a regression was
recently fixed? I don't think it was merged to 5.6, but it would great if you could confirm
that it works there
------------------------------------------------------------------------
[2016-08-06 23:07:58] clive at indx dot co dot uk
Description:
------------
Linux web25 4.4.10-20160518-1030-f317965 #1 SMP Wed May 18 10:33:23 UTC 2016 x86_64
phpinfo() output attached.
using "exif_read_data('file')" fails to read data from jpeg files.
Code has worked in previous versions.
Also checked image online at http://exifdata.com/exif.php, shows EXIF data without
issues.
Test script:
---------------
<?php
$exif = exif_read_data( './2014-09-23-5981.jpg' ) ;
foreach ($exif as $mykey => $mysection) {
foreach ($mysection as $myname => $myval) {
echo "$mykey.$myname: $myval<br />\n";
}
}
?>
archive of example file and .jpeg here: http://www.indx.co.uk/phpexif.zip
Expected result:
----------------
Expected entire EXIF data, just got "COMPUTED" outputs.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72772&edit=1