Jump to content

Looking for a command line tool to edit .jpg's comments


Recommended Posts


Posted (edited)

@jaclaz:

Thanks.Could you tell me which command to use?Following code doesn't work:

exiftool -Comment="This is a new comment" dst.jpg

Edited by tireless
Posted (edited)

Well, NO, it works ;), but it updates ANOTHER field, the "Comment" one, NOT the "XP Comment" one.

just run these on a "clean" .jpg

exiftool dst.jpg
exiftool -Comment="This is a new comment in the comment field" dst.jpg
exiftool dst.jpg
exiftool -XPComment="This is a new comment in the XP comment field" dst.jpg
exiftool dst.jpg

jaclaz

P.S.: if this:

http://newsgroup.xnview.com/viewtopic.php?p=66939

is not "accurate" enough, try this:

http://newsgroup.xnview.com/viewtopic.php?t=15925

and particularly this :whistle: :

http://newsgroup.xnview.com/viewtopic.php?...25&start=11

http://www.sno.phy.queensu.ca/~phil/exifto...Names/EXIF.html

Edited by jaclaz
Posted

:wacko: can not support Chinese characters:

d:\exiftool-7.57>exiftool -XPComment="测试" dst.jpg

Malformed UTF-8 character (1 byte, need 2, after start byte 0xd4) in unpack in I

FD0:XPComment (ValueConvInv)

Nothing to do.

Posted (edited)
:wacko: can not support Chinese characters:

Hmm :unsure:

http://www.sno.phy.queensu.ca/~phil/exifto...Names/EXIF.html

(tags 0x9c9b-0x9c9f are used by Windows Explorer; special characters in these values are converted to UTF-8 by default, or Windows Latin1 with the -L option. XPTitle is ignored by Windows Explorer if ImageDescription exists)

Could it be some kind of mis-match with codepage in the CMD window or something weird like ANSI/ASCII? (read DOS as opposed to Windows source) :blink:

Try the other way, i.e. put your comment with XP GUI on the image and read it through EXIF.

It is possible that a conversion is needed.....

Or try putting your comment in notepad and save it as UTF-8, then "feed" the file to EXIF through redirection....

jaclaz

P.S.: I guess you can use chcp and python:

http://coding.derkeiler.com/Archive/Python...0/msg00141.html

but not really my field.

I guess that on Chinese Forums this problem has come out and has been resolved already. :unsure:

Edited by jaclaz

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...