get title or caption

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pbeisel

get title or caption

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: get title or caption

Post by fmw42 »

see IPTC section of string formats at http://www.imagemagick.org/script/escape.php
Post Reply