Bug #64739 [Asn]: Invalid Title and Author data returned

From: Date: Fri, 14 Jul 2017 01:37:53 +0000
Subject: Bug #64739 [Asn]: Invalid Title and Author data returned
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210048@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64739&edit=1 ID: 64739 Updated by: kalle@php.net Reported by: php-qa at sebastianmendel dot de Summary: Invalid Title and Author data returned Status: Assigned Type: Bug Package: EXIF related Operating System: Linux PHP Version: 5.4.14 Assigned To: kalle Block user comment: N Private report: N New Comment: I debugged it a little further, it seems that internally ext/exif detects the image byte order as Motorola, which causes it to use a wrong encoding to process the tags (from the WINXP section). A temporary hack can be done by modifying the exif.decode_unicode_motorola ini directive: [exif] exif.decode_unicode_motorola=UCS-2LE (It defaults to UCS-2BE) I'm gonna look into possible approaches for solving this Previous Comments: ------------------------------------------------------------------------ [2017-07-13 23:15:01] kalle@php.net Thank you Sebastian, from some quick debugging it seems that the Motorola/Intel offset is poorly detected, causing it to read it as such ------------------------------------------------------------------------ [2017-07-13 12:35:34] php-qa at sebastianmendel dot de link http://sebastianmendel.de/php/exif_segmentation_fault/test.jpg restored ------------------------------------------------------------------------ [2017-07-07 10:28:15] kalle@php.net Hi, could you please re-upload the image somewhere so I can use it for testing? Thanks ------------------------------------------------------------------------ [2016-08-05 06:29:55] kalle@php.net @cweiske, you are right. This picture linked is stored in Motorola byte order which qualifies as big endian. This image has no makernote tag so I guess it was made from an editor (Paint.NET) and it also correctly identifies it as a motorola byte order in the COMPUTED section. Of all the data returned, it indeed seems to only be the title and author that is somehow corrupted. ------------------------------------------------------------------------ [2013-04-30 15:35:52] cweiske@php.net Reason is probably that the exif data were stored on a PowerPC Mac and have big endianess. ------------------------------------------------------------------------ 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=64739 -- Edit this bug report at https://bugs.php.net/bug.php?id=64739&edit=1

« previous php.bugs (#210048) next »