Edit report at https://bugs.php.net/bug.php?id=72819&edit=1
ID: 72819
Updated by: php-bugs@lists.php.net
Reported by: php dot bohwaz at miam dot kd2 dot org
Summary: EXIF thumbnails not read anymore
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: EXIF related
Operating System: Debian Linux Jessie
PHP Version: 5.6.24
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-08-20 22:11:23] crberry50 at gmail dot com
It was working on a 5.x release also... then it stopped after an Ubuntu update ... so I decided to
go to v7 and Ubuntu 16.04 thinking the bug would be fixed... but apparently not.. or I am missing
some other dependency.
...source...
$file='IMG_4741.JPG';
$image = exif_thumbnail($file, $width, $height, $type);
echo "length is :" . strlen($image);
... output and error message ...
PHP Warning: exif_thumbnail(IMG_4741.JPG): IFD data bad offset: 0xFFFFFCF2 length 0x0ED8 in
.../example1.php on line 3
length is :0 ...
... php -v ...
PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-0ubuntu0.16.04.2, Copyright (c) 1999-2016, by Zend Technologies
... uname -a ...
Linux ... 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:28 UTC 2016 i686 i686 i686 GNU/Linux
------------------------------------------------------------------------
[2016-08-12 10:12:34] cmb@php.net
I've just checked the first image with PHP 5.6.24 and with the
current head of the PHP-5.6 branch. The former gives int(0),
the latter int(21004), so indeed the issue appears to have been
fixed.
------------------------------------------------------------------------
[2016-08-12 09:33:44] php dot bohwaz at miam dot kd2 dot org
Yup I saw that bug but the patch seems to only affect Samsung photos, and my problem happens with
every photo I tried, so not sure how that patch would affect this issue.
In any case I will try with the git branch next week just to be sure.
------------------------------------------------------------------------
[2016-08-12 08:42:10] cmb@php.net
This appears to be a duplicate of bug #72735, which has been fixed
as of PHP 5.6.25. Please try this version.
------------------------------------------------------------------------
[2016-08-12 04:47:13] php dot bohwaz at miam dot kd2 dot org
(Continued, as antispam forbids me from posting too many URLs)
with different errors, or sometimes no error, but still no thumbnail:
$ php -r 'var_dump(strlen(exif_thumbnail("http://bohwaz.net/photos/2014/02-fevrier/p20140219_193908.jpg")));'
int(0)
$ php -r 'var_dump(strlen(exif_thumbnail("http://bohwaz.net/photos/2014/01-janvier/p20140117_080901.jpg")));'
int(0)
$ php -r 'var_dump(strlen(exif_thumbnail("http://bohwaz.net/photos/2014/01-janvier/12-Val_Suzon/p20140112_140758.jpg")));'
PHP Warning: exif_thumbnail(p20140112_140758.jpg): corrupt EXIF header: maximum directory nesting
level reached in Command line code on line 1
Warning: exif_thumbnail(p20140112_140758.jpg): corrupt EXIF header: maximum directory nesting level
reached in Command line code on line 1
int(0)
------------------------------------------------------------------------
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=72819
--
Edit this bug report at https://bugs.php.net/bug.php?id=72819&edit=1