print "LensID" error?

Started by yiduo2008, May 06, 2010, 05:06:22 AM

Previous topic - Next topic

yiduo2008

Hello,

I found many pictures photoed by the same lens but have different  "LensID".



exiftool.exe -LensID "Canon EF85mm f 1.8 USM.jpg"
Lens ID                         : Canon EF85mm f/1.8 USM

exiftool.exe -LensID "Canon EF 85mm f 1.8 USM.jpg"
Lens ID                         : Canon EF 85mm f/1.8 USM


Phil Harvey

This is because the LensType number is not valid in one of your images so ExifTool uses the stored LensModel string instead.  The Canon LensModel strings are slightly different than the LensID strings that exiftool generates.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

yiduo2008

Quote from: Phil Harvey on May 06, 2010, 06:40:21 AM
This is because the LensType number is not valid in one of your images so ExifTool uses the stored LensModel string instead.  The Canon LensModel strings are slightly different than the LensID strings that exiftool generates.

- Phil


Thank you for your reply .

I have another problem with "Lens ID".

Why this photo "Lens ID" is "237" ?



exiftool.exe -make -LensID -Lens -LensInfo -LensModel 12063330.jpg
Make                            : Canon
Lens ID                         : 237
Lens                            : EF24-105mm f/4L IS USM
Lens Info                       : 24-105mm f/?


Phil Harvey

This is the LensID written by Adobe products in the XMP.  ExifTool only converts LensID values from the maker notes.

Use -a -G1 to see where the information is coming from.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).