Bug #1368

Canon EF-M 15-45 broken LensType

Added by Peter Wemmert 18 days ago. Updated 18 days ago.

Status:ClosedStart date:30 Sep 2018
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:not-a-bugEstimated time:1.00 hour
Target version:0.27

Description

Worked last month in darktable but now Exiv2 (and darktable) reports (4153).
I used exiv2 -pt IMG_3934.CR2 | grep -i lens

Raw file:
https://myfile.is/M1J5r3iabc/IMG_4954_CR2

History

#1 Updated by Robin Mills 18 days ago

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

This seems to be OK on 'master'

rmills@rmillsmbp:~/Downloads $ exiv2 -pa --grep lens/i ~/Downloads/IMG_4954.CR2 
Exif.CanonCs.LensType                        Short       1  Canon EF-M 15-45mm f/3.5-6.3 IS STM
Exif.CanonCs.Lens                            Short       3  15.0 - 45.0 mm
Exif.Photo.LensSpecification                 Rational    4  15/1 45/1 0/1 0/1
Exif.Photo.LensModel                         Ascii      29  EF-M15-45mm f/3.5-6.3 IS STM
Exif.Photo.LensSerialNumber                  Ascii      11  000002c252
576 rmills@rmillsmbp:~/Downloads $ 
I'm wondering if you are now using an older version of Exiv2 and/or darktable.

If you're using Exiv2 v0.26 (in libexiv2.26.dylib), you can modify the lens identification in the ~/.exiv2 file:

rmills@rmillsmbp:~/Downloads $ exiv2 -pv --grep lens/i ~/Downloads/IMG_4954.CR2 
0x0016 CanonCs      LensType                    Short       1  4153  <--- Use this ID
0x0017 CanonCs      Lens                        Short       3  45 15 1
0xa432 Photo        LensSpecification           Rational    4  15/1 45/1 0/1 0/1
0xa434 Photo        LensModel                   Ascii      29  EF-M15-45mm f/3.5-6.3 IS STM
0xa435 Photo        LensSerialNumber            Ascii      11  000002c252
rmills@rmillsmbp:~/Downloads $ 582 rmills@rmillsmbp:~/Downloads $ cat ~/.exiv2
[canon]
4153=Peter Wemmert's Lens <--- Give it a name
rmills@rmillsmbp:~/Downloads $ exiv2 -pt --grep lens/i ~/Downloads/IMG_4954.CR2 
Exif.CanonCs.LensType                        Short       1  Peter Wemmert's Lens
Exif.CanonCs.Lens                            Short       3  15.0 - 45.0 mm
Exif.Photo.LensSpecification                 Rational    4  15/1 45/1 0/1 0/1
Exif.Photo.LensModel                         Ascii      29  EF-M15-45mm f/3.5-6.3 IS STM
Exif.Photo.LensSerialNumber                  Ascii      11  000002c252
rmills@rmillsmbp:~/Downloads $ 
The ~/.exiv2 file is documented here: http://dev.exiv2.org/projects/exiv2/wiki/Lens_Recognition_in_Exiv2_v026_(and_later)/

#2 Updated by Peter Wemmert 18 days ago

exiv2 -vVg config
exiv2 0.25 001900 (64 bit build).

Ubuntu 16.04 and darktable 2.4.4.

Shall search for the exiv2 file.

#4 Updated by Robin Mills 18 days ago

  • Category changed from lens to not-a-bug
  • Status changed from Assigned to Closed
  • % Done changed from 50 to 100

Peter: I'm going to close this because it's a darktable/ubuntu integration issue.

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux