Page 1 of 1

get title or caption

Posted: 2010-10-05T22:30:53-07:00
by pbeisel
I would like to use the 'identify' command to get the image's caption (or title). this is what you see on Mac OSX "Get Info" as "Description" or on Windows Properties "Title".

using the -verbose option I can see the caption in the Profiles IPTC section.

is there a format option e.g., -format "%f"

to get at this data?

or must I get it another way?

I am doing this in a program so the -format option is perfect to retrieve discreet values. I would hate to try to parse the -verbose output.

Re: get title or caption

Posted: 2010-10-06T13:39:12-07:00
by fmw42
see IPTC section of string formats at http://www.imagemagick.org/script/escape.php