Change Lens Model

Started by JorgeNelson.S, June 02, 2024, 05:09:23 PM

Previous topic - Next topic

JorgeNelson.S

For use in prompt (.BAT), is this syntax correct? I can't make it work.

exiftool -if "-exif:lensmodel eq 'DT 0mm F0 SAM'" -exif:lensmodel="Canon EF 8-15mm f/4L FISHEYE USM" -r E:\MyDIR

I'm definitely getting confused with the quotation marks

Tanks.

StarGeek

Tag names in the -if expression are prefixed by the $ symbol.

C:\>exiftool -G1 -a -s -LensModel y:\!temp\Test4.jpg
[ExifIFD]       LensModel                       : DT 0mm F0 SAM

C:\>exiftool -P -overwrite_original -if "$exif:lensmodel eq 'DT 0mm F0 SAM'" -exif:lensmodel="Canon EF 8-15mm f/4L FISHEYE USM" y:\!temp\Test4.jpg
    1 image files updated

C:\>exiftool -G1 -a -s -LensModel y:\!temp\Test4.jpg
[ExifIFD]       LensModel                       : Canon EF 8-15mm f/4L FISHEYE USM
"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

JorgeNelson.S

It worked perfectly, thank you very, very much.