Identifying if a specific metadata type is used

Started by neebah, June 12, 2021, 09:33:03 AM

Previous topic - Next topic

neebah

Without searching for a specific tag is it possible to identify whether a tag of a specific group is present at all.  For example is it possible to identify if there is any XMP data or any IPTC data or any IFD1 data, etc present in a group of files?

Phil Harvey

This command will execute if there is any XMP in the file:

exiftool -if "$xmp:all" FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).