ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:21 AM

Title: Using binary option
Post by: Archive on May 12, 2010, 08:54:21 AM
[Originally posted by mattw on 2008-06-20 07:59:18-07]

Hello,

When extracting field data with the binary option the field names are not displayed. I am therefore having issues processing the output.

E.g. exiftool -b -IPTC:Caption-Abstract -IPTC:Keywords image.jpg

This appears to separate the two fields with a line break. But as there are line breaks in the data there is no way to distinguish between the two fields. Is there a solution to this?

I have also noticed that when using the binary option an apostrophe is not being displayed correctly (looks like incorrect encoding). I have tried a number of different options but am unable to make it display.

Any help greatly appreciated.

Thanks,

Matt
Title: Re: Using binary option
Post by: Archive on May 12, 2010, 08:54:21 AM
[Originally posted by exiftool on 2008-06-20 11:07:15-07]

Hi Matt,

The -b option is only useful when extracting a single tag
since the output is the raw binary value of the tag.  The only exception
is that line breaks are inserted (instead of commas) between elements
of a list, but there is nothing inserted between different tag values.
You have to write your own script if you want to extract multiple tags
in binary form.

There are many characters that look like apostrophe's, but aren't.
I assure you that an apostrophe (ASCII character code 39) will display
correctly, but other similar special characters may display differently
on different devices.

- Phil