ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: sunbuzz on September 02, 2019, 05:32:50 AM

Title: Wrong "Resolution Unit" while using -printConv
Post by: sunbuzz on September 02, 2019, 05:32:50 AM
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?
Title: Re: Wrong "Resolution Unit" while using -printConv
Post by: Hayo Baan on September 02, 2019, 06:19:21 AM
Interesting, can you post the images that exhibit this behaviour?
Title: Re: Wrong "Resolution Unit" while using -printConv
Post by: StarGeek on September 02, 2019, 11:49:43 AM
This might be a FAQ #3 (https://exiftool.org/faq.html#Q3) in that there are duplicate ResolutionUnit values and the tag gets filled differently depend upon whether the -n (printConv) option (https://exiftool.org/exiftool_pod.html#n---printConv) is used or not.

Try
exiftool -g1 -a -s -"*resolution*" <File>
on one of the files to see the full scope of the data.