unable to retrieve a comment's data in php

Started by deke, April 05, 2018, 01:50:20 AM

Previous topic - Next topic

deke

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

but it doesn't work with ExifByteOrder=Big-endian

i want a way to modify the ExifByteOrder
Thank you

Phil Harvey

#1
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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

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, but with the ExifByteOrder tag set)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

deke

#3
Thank you very much , you saved my project  :)

You sir are a legend

it works like a charm ...