Bug #1372

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

Added by Julian Hofer 9 days ago. Updated 9 days ago.

Status:ClosedStart date:09 Oct 2018
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:lensEstimated time:1.00 hour
Target version:0.27

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

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

History

#1 Updated by Robin Mills 9 days 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

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

Redmine Appliance - Powered by TurnKey Linux