Write a comment for a JPG image from CMD

Started by danutzu77, May 01, 2018, 08:55:31 AM

Previous topic - Next topic

danutzu77

Hello,

I struggle for a few days to add a comment for a JPG image with exiftool from CMD.
C:\\exiftool.exe -comment="this is a test" test.jpg
1 image files updated

But the tool is not adding any comment.

Instead, if i add a titile, it works :
C:\\exiftool.exe -title="Hello World" test.jpg
1 image files updated


Do you have an idea what's going on ???

Phil Harvey

Quote from: danutzu77 on May 01, 2018, 08:55:31 AM
But the tool is not adding any comment.

Yes it is.

Perhaps reading FAQ 3 will help.

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

StarGeek

I'm assuming you're reading the Windows property called "Comment".  What Windows calls "Comment" can actually be one of three different tags.  See this post for a translation of Windows property names into real tag names. 

In this case, Windows will read EXIF:UserComment, XMP:UserComment, and EXIF:XPComment to fill the Comment property.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

danutzu77

@StarGeek, thank you very much !  EXIF:XPComment works wonderful for what i need.
May the force be with you