Read empty Exif values

Started by Deret, January 16, 2017, 09:25:02 AM

Previous topic - Next topic

Deret

I have noticed that when reading Exif data from an image file (jpg), nothing is returned if a particular value is empty - i.e. Camera Model Name.  I am using the returned data to create an array of values, so it is necessary that the array is always the same length and therefore has empty values returned as such.  Is there an option flag that will do this, e.g. "exiftool -z"?

Hayo Baan

Use the -f option, this will print a dash if the tag doesn't exist. Check the documentation for more details. (I assume you already make use of e.g. the -T option?)
Hayo Baan – Photography
Web: www.hayobaan.nl

Deret

Thank you.  At first, -f failed to work, and then I realised it was because I was specifying "exif:all" and not specifying the required tags individually.  All is well now.