Wrong "Resolution Unit" while using -printConv

Started by sunbuzz, September 02, 2019, 05:32:50 AM

Previous topic - Next topic

sunbuzz

Hi. I am using exiftool, and cannot wrap my head around an issue:

root@red:~# exiftool -"*resolution*" -n /mnt/saga/Storage/0003/00003569.jpg
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : 2
root@red:~# exiftool -"*resolution*" /mnt/saga/Storage/0003/00003569.jpg
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
root@red:~# exiftool -"*resolution*" -n /mnt/saga/Storage/0297/00297100.jpg
Resolution Unit                 : 2
X Resolution                    : 28
Y Resolution                    : 28
root@red:~# exiftool -"*resolution*" /mnt/saga/Storage/0297/00297100.jpg
Resolution Unit                 : cm
X Resolution                    : 28
Y Resolution                    : 28
root@red:~#


this is the same on both windows and macOS (both downloaded binary's) as well as build on Linux
Version: 11.65

As you can see, when using the -n option, I get the same output (2), but when I am not, I get different output (inches/cm)
Do anybody know what's going on?

Hayo Baan

Interesting, can you post the images that exhibit this behaviour?
Hayo Baan – Photography
Web: www.hayobaan.nl

StarGeek

This might be a FAQ #3 in that there are duplicate ResolutionUnit values and the tag gets filled differently depend upon whether the -n (printConv) option is used or not.

Try
exiftool -g1 -a -s -"*resolution*" <File>
on one of the files to see the full scope of the data.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).