Makernotes usually store the lens type in some way. Sometime as a string, sometime as an numerical ID, or something else. There is not standard and it is mostly per vendor. # References ## Nikon * [[Nikkor Lens ID|http://www.rottmerhusen.com/objektives/lensid/nikkor.html]] * [[Nikkor Extended Lens ID|http://www.rottmerhusen.com/objektives/lensid/thirdparty.html]] ## Pentax * [[Pentax Lens ID|http://homepage2.nifty.com/mak_kawa/digicam/lens/lensid/lens_id.htm]] ## Canon * [[Canon LensType from ExifTool|http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Canon.html#LensType]] Canon cameras do not have a reliable "[[LensType|LensType]]" field. For example my 20D does not and put 0xffff, while some later Rebel model does. So there are two ways: if you have a consistent [[CameraSettings|CameraSettings]].[[LensType|LensType]], use it. If you don't (0xffff for example) you have other lens info that should allow to reduce the list to a bunch and require some user selection for the few last cases. For that there are a few fields in the makernotes: First the [[FocalLength|FocalLength]].[[FocalType|FocalType]] to see if it is a zoom or a prime. Second [[CameraSettings|CameraSettings]].[[LongFocal|LongFocal]] and [[ShortFocal|ShortFocal]], and [[MaxAperture|MaxAperture]] + [[MinAperture|MinAperture]].