Bug #76521 [Ver->Dup]: getimagesize() fails on photos from Samsung S8
| From: | cmb@php.net | Date: | Fri, 22 Jun 2018 15:18:58 +0000 |
| Subject: | Bug #76521 [Ver->Dup]: getimagesize() fails on photos from Samsung S8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215871@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76521&edit=1
ID: 76521
Updated by: cmb@php.net
Reported by: opajaap at opajaap dot nl
Summary: getimagesize() fails on photos from Samsung S8
-Status: Verified
+Status: Duplicate
Type: Bug
Package: GetImageSize related
PHP Version: 7.1.18
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks! Indeed this is a duplicate of the former bug; this image
also contains an empty APP5 segment (starting at 0x67E6).
Previous Comments:
------------------------------------------------------------------------
[2018-06-22 14:23:28] requinix@php.net
Here we go. You probably recognize it too: bug #71848 and/or bug #75708.
------------------------------------------------------------------------
[2018-06-22 14:20:02] requinix@php.net
Then this bug sounds familiar...
------------------------------------------------------------------------
[2018-06-22 14:19:12] requinix@php.net
Works for me.
Array
(
[0] => 4032
[1] => 3024
[2] => 2
[3] => width="4032" height="3024"
[bits] => 8
[channels] => 3
[mime] => image/jpeg
)
The @ will hide errors. If you have a problem then hiding errors is not good. Remove the @.
------------------------------------------------------------------------
[2018-06-22 14:19:09] cmb@php.net
I can reproduce this on current PHP-7.2. As soon as the
$imageinfo parameter is given, getimagesize() returns FALSE
without any notice/warning.
------------------------------------------------------------------------
[2018-06-22 13:24:09] peehaa@php.net
What is the actually error getimagesize returns?
------------------------------------------------------------------------
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=76521
--
Edit this bug report at https://bugs.php.net/bug.php?id=76521&edit=1