ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: deke on April 05, 2018, 01:50:20 AM

Title: unable to retrieve a comment's data in php
Post by: deke on April 05, 2018, 01:50:20 AM
i am working on a project uses this library to store some information inside exif data in an image ... it works just fine with images that have ExifByteOrder=Little-endian
take a look at the Comment tag
(https://user-images.githubusercontent.com/23610404/38330024-c689c8d4-384f-11e8-9c34-7b7957e92c7d.jpg)
but it doesn't work with ExifByteOrder=Big-endian
(https://user-images.githubusercontent.com/23610404/38330053-dbade3d0-384f-11e8-91fe-bd500b99e19c.jpg)
i want a way to modify the ExifByteOrder
Thank you
Title: Re: unable to retrieve a comment's data in php
Post by: Phil Harvey on April 05, 2018, 08:14:52 AM
The software you are using isn't decoding the UserComment properly.  I do not recommend changing the byte order of the EXIF because proprietary information may be corrupted.

There is a way to use ExifTool to change the byte order, but I just checked and this feature doesn't seem to be working properly in the current version... I'm looking into this now.  [Edit: this has been a problem since version 10.61]

- Phil
Title: Re: unable to retrieve a comment's data in php
Post by: Phil Harvey on April 05, 2018, 11:08:05 AM
I just released ExifTool 10.90 which allows ExifTool to be used (again) to change the EXIF byte order of a JPG.  The command would be:

exiftool -exif:all= -tagsfromfile @ -exif:all -unsafe -thumbnailimage -exifbyteorder=Little FILE

(same as the command given in FAQ 20 (https://exiftool.org/faq.html#Q20), but with the ExifByteOrder tag set)

- Phil
Title: Re: unable to retrieve a comment's data in php
Post by: deke on April 06, 2018, 02:24:54 AM
Thank you very much , you saved my project  :)

You sir are a legend

it works like a charm ...