Skip to content

EXIV2 retrieve value from a single specific IPTC tag #2658

Answered by postscript-dev
airdata3 asked this question in Q&A
Discussion options

You must be logged in to vote

@airdata3
I don't know which version of Exiv2 you are using but the latest 0.28.0 manpage only has a couple of very minor changes from several 0.27.x releases. The new manpage contains more information and examples.

The command line entry:
exiv2 -piv d:\aviation\photos\2023\23L0010.jpg

This retrieves 12 lines of tags. I need the value contained in one tag only - Iptc.Application2.Caption
How do I retrieve this using EXIV2 command line?

In the exiv2 app, you can filter specific tags with --key key or groups of tags using --grep str. If you need to, you can control the output more precisely by using --Print flgs instead of --print mod.

It is worth noting that when using Windows' cmd.exe

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@airdata3
Comment options

Answer selected by airdata3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants