Two "modifys" or two "prints" in command line -- possible?
Added by Steve Wright 7 months ago
Let's say one had a jpeg to which they wanted to add both an Iptc caption and an EXIF Image Description. Could they/how could they use one command-line command to do this?
I also noticed that -p only acknowledges one mode option on the command line. Yet there isn't a mode which would show both EXIF and IPTC values, nor (for that matter) any and all metadata in a given file. It seems a bit unfair that one can't "cluster" options when there isn't a single option (as ImageMagick has "-verbose" for its identify command) to display all available metadata.
I looked at the short list of features planned for future versions of exiv2, and I see a "Single container for all metadata" mentioned. Is this perhaps why "clustering" options is not yet possible for -p print commands? Or adding/setting two different classes of metadata in one line or from one line item in a command file not yet possible?
Please explain.
Silversleeves
Replies
RE: Two "modifys" or two "prints" in command line -- possible? - Added by Andreas Huggel 7 months ago
Both can be done with somewhat recent versions of exiv2. You can have multiple -m and -M options (and in one command file there can be multiple commands), so there are various ways to achieve the first requirement.
As for the question about printing, there is an option to show all metadata, -pa. Finer control is possible with the -P option. You can consider the -p options as just shortcuts for certain -P arguments if you like (the man page lists them). E.g., -pt is a shortcut for -PEkyct. With -P you can specify which types of metadata you want to see and what information should be displayed (there can only be one -P option, but I don't think that matters).
Hope that helps.
Andreas
RE: Two "modifys" or two "prints" in command line -- possible? - Added by Steve Wright 7 months ago
Andreas,
It does indeed. Thanks for the prompt reply.
Silversleeves