Error in the result of the size of the images in inch, centimeter and millimetre.

Advanced Renamer forum
#1 : 11/01-18 05:49
trainant fabrice
trainant fabrice
Posts: 1
Hello,
The values of dimension(size) in millimeter with regard to(compared with) the dpi and the resolution are false.
I would thus love with a script, calculated real dimension(size) in graduated(well organized) with the following formula:

(<ExifTool:ImageWidth>/ <ExifTool:XResolution>) x 25.1 = x mm
(<ExifTool:ImageHeight>/ <ExifTool:YResolution>) x 25.1 = y mm

Values that I to put in the name of the file : x mm and y mm

example :
x 1920
y 1080
x dpi : 300
y dpi : 300
x = 1920/300= 6.4 inch
y = 1080/300 = 3.6 inch

x = 6.4 x 25.1 = 160.64 mm
y = 3.6 x 25.1 = 90.36 mm.

Here is an example of false value.

formula :pixel <ExifTool:ImageWidth> x <ExifTool:ImageHeight> taille mm <Img Width Mm> x <Img Height Mm> DPI <ExifTool:XResolution>

result :
pixel 800 x 950 taille mm 282 x 335 DPI 300

or : 800/300 = 2.66
2.66 x 25.1 = 66.66 mm
but not : 282 mm.

thx

sorry i'am french and my english this is very bad.


11/01-18 05:49