Project

General

Profile

Bug #1372

The lens "Tamron AF 18-200mm F3.5-6.3 XR Di II" is wrongly identified.

Added by Julian Hofer about 3 years ago. Updated about 3 years ago.

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

100%

Estimated time:
1.00 h

Description

When I use exiv2 to identify the lens of a jpg-File, I get "Minolta/Sony AF DT 18-200mm F3.5-6.3 (D)" instead of "Tamron AF 18-200mm F3.5-6.3 XR Di II"

I've seen similar discussions, but these ended three years ago so I wanted to make sure this issue is reported.

Sample file is in the attachment.

Operating System is Ubuntu 18.04 with exiv2 0.25 001900 (64 bit build).

Camera is Sony SLT-A55V


Files

2017-11-16 13.23.26.jpg (3.32 MB) 2017-11-16 13.23.26.jpg Julian Hofer, 09 Oct 2018 13:00

History

#1

Updated by Robin Mills about 3 years ago

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

Thanks for reporting this and providing a test image.

Good News! You can modify lens recognition in Exiv2 v0.26 and later using the file ~/.exiv2

504 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pa --grep lens/i 2017-11-16%2013.23.26.jpg 
Exif.Sony2.LensID                            Long        1  Minolta/Sony AF DT 18-200mm F3.5-6.3 (D)
Exif.Photo.LensSpecification                 Rational    4  180/10 2000/10 35/10 63/10
Exif.Photo.LensModel                         Ascii      21  DT 18-200mm F3.5-6.3
505 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $
Get the LensID value (an integer):
505 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pv --grep lens/i 2017-11-16%2013.23.26.jpg 
0xb027 Sony2        LensID                      Long        1  42 <--- This value
0xa432 Photo        LensSpecification           Rational    4  180/10 2000/10 35/10 63/10
0xa434 Photo        LensModel                   Ascii      21  DT 18-200mm F3.5-6.3
506 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ 
And put it into the (optional) file ~/.exiv2:
506 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ cat ~/.exiv2
[sony]
42=Tamron AF 18-200mm F3.5-6.3 XR Di II
507 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $
And now the lens is correctly identified:
507 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pa --grep lens/i 2017-11-16%2013.23.26.jpg 
Exif.Sony2.LensID                            Long        1  Tamron AF 18-200mm F3.5-6.3 XR Di II
Exif.Photo.LensSpecification                 Rational    4  180/10 2000/10 35/10 63/10
Exif.Photo.LensModel                         Ascii      21  DT 18-200mm F3.5-6.3
508 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $
This feature is documented here: http://dev.exiv2.org/projects/exiv2/wiki/Lens_Recognition_in_Exiv2_v026_(and_later)/

Lens recognition is troublesome because the manufacturers use different methods to record the lens in the metadata. To confound the problem, it's common with Sony/Minolta cameras to use the same LensID for more than one lens. In your case "42" is used by both Tamron and Sony for similar lenses. The "config file" feature was added in Exiv2 v0.26 to enable you to update lens recognition on your computer for your lenses.

Also available in: Atom PDF