Project

General

Profile

Feature #1191

New lens request

Added by Yvi San over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lens
Target version:
Start date:
09 Jun 2016
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

exiv2 -pt IMG_8087.CR2 | grep -ai lens
Exif.CanonCs.LensType Short 1 161
Exif.CanonCs.Lens Short 3 100.0 mm
Exif.Canon.LensModel Ascii 74 100mm
Exif.Photo.LensSpecification Rational 4 100/1 100/1 0/1 0/1
Exif.Photo.LensModel Ascii 6 100mm
Exif.Photo.LensSerialNumber Ascii 11 0000000000

Lens name: Tokina AT-X M100 AF PRO D 100mm F2.8 Macro

Link to product page: http://www.tokinalens.com/tokina/products/atxpro/atxm100afprod/

Low resolution JPG file attached. I had white balance bracketing on. Let me know if you need another pic.


Files

IMG_8401.JPG (6.38 MB) IMG_8401.JPG Yvi San, 09 Jun 2016 02:39

History

#1

Updated by Robin Mills over 5 years ago

  • Category set to lens
  • Status changed from New to Closed
  • Assignee set to Robin Mills
  • Target version set to 0.26
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

There is no fix, however there is a work-around. Canon record LensType 161 for your lens.

We know of at least 8 other lenses with LensType 161. In v0.26 (currently on the trunk), you can add a file called the "camera override file" to provide the definition. This file is in Windows/.ini format and located at ~/.exiv2 on Linux/Mac and c:\Users\username\exiv2.ini on Windows. The section [canon] is required for your camera and the entry 161=Tokina AT-X M100 AF PRO D 100mm F2.8 Macro defines your lens.

588 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ exiv2 -pa --grep lens/i IMG_8401.JPG 
Exif.CanonCs.LensType                        Short       1  161
Exif.CanonCs.Lens                            Short       3  100.0 mm
Exif.Canon.LensModel                         Ascii      74  100mm
Exif.Photo.LensSpecification                 Rational    4  100/1 100/1 0/1 0/1
Exif.Photo.LensModel                         Ascii       6  100mm
Exif.Photo.LensSerialNumber                  Ascii      11  0000000000
589 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ ce src/canonmn.cpp 
bbedit "src/canonmn.cpp" 

590 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ bbedit ~/.exiv2 

591 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ cat ~/.exiv2 
[canon]
161=Tokina AT-X M100 AF PRO D 100mm F2.8 Macro

592 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ exiv2 -pa --grep lens/i IMG_8401.JPG 
Exif.CanonCs.LensType                        Short       1  Tokina AT-X M100 AF PRO D 100mm F2.8 Macro
Exif.CanonCs.Lens                            Short       3  100.0 mm
Exif.Canon.LensModel                         Ascii      74  100mm
Exif.Photo.LensSpecification                 Rational    4  100/1 100/1 0/1 0/1
Exif.Photo.LensModel                         Ascii       6  100mm
Exif.Photo.LensSerialNumber                  Ascii      11  0000000000

593 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ 
Exiftool cannot recognise this lens uniquely either.
593 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $ exiftool IMG_8401.JPG  | grep -i lens
Lens Type                       : Canon EF 28-70mm f/2.8L or Sigma or Tamron Lens
Lens Info                       : 100mm f/0
Lens Model                      : 100mm
Lens Serial Number              : 0000000000
Lens                            : 100.0 mm
Lens ID                         : Unknown (161) 100mm
Lens                            : 100.0 mm (35 mm equivalent: 157.7 mm)
594 rmills@rmillsmbp:~/gnu/exiv2/bigtiff $
Because the "camera override file" file is in your home directory, all applications using libexiv2 will read the file. GIMP, Darktable and other applications will all read this file when v0.26 ships and in use by those applications.

Also available in: Atom PDF