Croping a picture - how to update crop factor ?

Started by 7tonin, February 28, 2021, 04:49:08 AM

Previous topic - Next topic

7tonin

Hi,
a picture file is croped from ImageSize: 5152x2904 to ImageSize: 640x480
All metadata are copied, but how to update crop factor? field of view?


7tonin

I'm happy with this formula, which is the inverse ratio of the diagonals: ird = SQRT( ( 5152 ² + 2904 ² ) / ( 640 ² + 480 ² ) ) = 6.978...
Then read equivalent focal length
exiftool -FocalLengthIn35mmFormat filename.jpg
Focal Length In 35mm Format     : 150 mm


calculate 150 * ird = 150 * 6.978... = 1046.80...

Apply
exiftool -FocalLengthIn35mmFormat=1046.80 filename.jpg

Then -FOV (field of view) is updated, and maybe some others.

7tonin

The follogwing fields are updated (and maybe some others):
-FocalLengthIn35mmFormat
-ScaleFactor35efl
-CircleOfConfusion
-FOV
-FocalLength35efl
-HyperfocalDistance



fieldfromto
-FocalLengthIn35mmFormat150 mm1047 mm
-ScaleFactor35efl4.430.8
-CircleOfConfusion0.007 mm0.001 mm
-FOV13.7 deg2.0 deg
-FocalLength35efl34.0 mm (35 mm equivalent: 150.0 mm)34.0 mm (35 mm equivalent: 1047.0 mm)
-HyperfocalDistance60.62 m423.13 m

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

7tonin

Thank you very much !
By the way, I made a mistake in my ird value calculation. But my explaination is still ok.