Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

  • Author

@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

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

  • Author

: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.

: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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.