Lenses by number
Last updated: December 2, 2026
Some cameras don't write the lens's name in their photos, only a number: Nikon's F-mount cameras, Pentax's and some Canons. With this table, Photisan knows which lens it is and can apply its correction.
The table
- lens-ids.txt: one lens per line, with the maker, the number and the name separated by “|”. The first lines, starting with “#”, say where it comes from and what we changed.
- lens-ids-license.txt: the Perl Artistic License, under which we use it.
Nikon's numbers are the eight bytes the camera identifies the lens with, in hexadecimal; Pentax's, the series and the model; Canon's, the lens type.
Where it comes from
From the tables of ExifTool 13.64, by Phil Harvey: Nikon's, with the data gathered by Robert Rottmerhusen, Pentax's and Canon's. ExifTool is distributed under the same terms as Perl; we use its tables under the Artistic License.
What we changed
- We converted them to this text format, the one Photisan reads.
- We left out the numbers that stand for more than one lens, or for none: with them there is no telling which correction to apply.
You may use this table freely, under the terms of the same license. The original tables, unchanged, come with ExifTool.