Editing .JPG metadata comments programmatically

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

friendly_cello

Editing .JPG metadata comments programmatically

Post by friendly_cello »

I've written a script that does some batch resizing and editing, and I'd like to be able to add comments into the metadata of the output .JPG files. Right now I'm editing these comments using this program: jpegcommenter, which works, but obviously isn't as convenient as having comments added into the files while I'm resizing them. Does anyone know if this functionality is possible using Photoshop's scripting tools?

Thanks.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Paul MR

Editing .JPG metadata comments programmatically

Post by Paul MR »

Have a look at this thread...
bb/viewtopic.php?f=2&t=4982
friendly_cello

Editing .JPG metadata comments programmatically

Post by friendly_cello »

Thanks for the reply, but it seems that the methods mentioned in your link set the Windows metadata for the file, not the actual JPEG metadata. Is there a way to edit the actual metadata of the JPEG?
Paul MR

Editing .JPG metadata comments programmatically

Post by Paul MR »

Both those methods write the metadata to the actual file, I do not understand what you mean by it saves it to the Windows Metadata? Never heard of that?
friendly_cello

Editing .JPG metadata comments programmatically

Post by friendly_cello »

There's two types of metadata - the metadata that's stored courtesy of the Windows file system (which would be lost, I think, if the files were transferred to a linux machine), and the JPEG metadata which is embedded into the image itself. The former can be viewed by right clicking on a .jpg and navigating to "Properties" and clicking on the "Details" tab, while the latter isn't as accessible. The second type of metadata is the metadata I'm trying to edit.
Paul MR

Editing .JPG metadata comments programmatically

Post by Paul MR »

The information is written to the file and travels with the document, using either example. It does not write the information to a database.