writing binary data to trailer

Started by banana123, December 31, 2023, 04:15:15 AM

Previous topic - Next topic

banana123

hi guys,
been trying to write binary data to the trailer tag ("Trailer:Trailer"), but it seems the exiftool saves it as str instead of bytes (b"b'\\x00\\x00\\.....'").
Is there any way to write bytes data to trailer?
thanks!! <3

banana123

#1
SG Edit: duplicated posts merged

Quote from: StarGeek on August 06, 2020, 11:50:29 AMIf you check the MPF tag page, you'll see that exiftool doesn't write any of those tags.

is there any way to write binary data to an existing exif tag?

Phil Harvey

What command were you using?  Generally, the best way to write binary data is directly from a file:

exiftool "-trailer<=binfile.dat" FILE

- 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 ($).