Different ResolutionUnit Numeric Codes between TIFF and JPEG files

Started by AlessandroA, December 19, 2016, 06:40:09 AM

Previous topic - Next topic

AlessandroA

Hi,

I'm using Exiftool 10.36 (Mac Version) to extract, in PHP output, image metadata from TIFF and JPEG files.
The command is: "exiftool -php -n $img".

Why, when -n (numeric values) option is specified, the [resolutionUnit] is expressed in different ways?
For TIFF is: [ResolutionUnit] => 2
For JPEG is: [ResolutionUnit] => 1

Switching to verbose mode the "inches" value is exported for each format.

Thanks,
A.





Hayo Baan

It's because in a JPG, 1 means inches and in a TIFF, 2 means inches :)
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

Yes.  As Hayo mentioned the EXIF and JFIF encodings of ResolutionUnit are different.

- 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 ($).