summaryrefslogtreecommitdiff
path: root/Lens_Types.mdwn
blob: 78ef2522311c307d8628a6b896eafcb95af4153b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

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]].