Project

General

Profile

Bug #485

Weird behaviour when Exif comments contain quotes

Added by Andreas Huggel about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
tools
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I'm trying to add exif comments to a bunch of files and I found some
weird behavior.

Works fine!
exiv2 -M "set Exif.Photo.UserComment This is my comment" file.jpg

Works fine! (quoted my)
exiv2 -M "set Exif.Photo.UserComment This is \"my\" comment" file.jpg

Broken (quoted comment)
exiv2 -M "set Exif.Photo.UserComment This is my \"comment\"" file.jpg

It seems if the FINAL character of the comment is a " character the
parser gets confused. I can "work around" the bug by doing:

Work Around (last char not ")
exiv2 -M "set Exif.Photo.UserComment This is my \"comment\"." file.jpg

Is this normal?

Scott

History

Also available in: Atom PDF