Image-ExifTool - Commas in values of list tags

Posted on Mon Aug 18 21:05:11 2008 by janfri
Commas in values of list tags

Hello!

In the output of the exiftool comandline-application there is no distinction between the field separator comma and a comma in the value of a list tag. For example

# setting 3 values $ exiftool -keywords='foo' -keywords='bar' -keywords='baz' some_file.jpg # setting 2 values, one with a comma $ exiftool -keywords='foo' -keywords='bar, baz' another_file.jpg # the output is identical $ exiftool -keywords some_file.jpg Keywords: foo, bar, baz $ exiftool -keywords some_file.jpg Keywords: foo, bar, baz

It would be nice if the comma in the value would be escaped for example with a backslash. So the second example would return Keywords: foo, bar\, baz and can be distinguish from the first.

Btw. The output of the commandline-application is very well structured and super simple to parse. Thanks a lot.

Best regards
Jan Friedrich

Direct Responses: 8615 | Write a response