Patch #839

Canon EOS M EF-M lenses

Added by Pascal de Bruijn over 4 years ago. Updated almost 2 years ago.

Status:ClosedStart date:21 Aug 2012
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:metadata
Target version:0.25

Description

Hi,

I found some images samples using the new EOS M/EF-M lenses:

http://web.canon.jp/imaging/eosd/samples/eosm/downloads/01.jpg
pmjdebruijn@brutus:~$ exiv2 -pt 01.jpg | grep -i lens
Exif.CanonCs.LensType Short 1 (4145)
Exif.CanonCs.Lens Short 3 22.0 mm
Exif.Canon.LensModel Ascii 74 EF-M22mm f/2 STM��d
Exif.Photo.LensSpecification Rational 4 22/1 22/1 0/1 0/1
Exif.Photo.LensModel Ascii 17 EF-M22mm f/2 STM
Exif.Photo.LensSerialNumber Ascii 11 000000002d

My suggestion: Canon EF-M 22mm f/2 STM

http://web.canon.jp/imaging/eosd/samples/eosm/downloads/09.jpg
pmjdebruijn@brutus:~$ exiv2 -pt 09.jpg | grep -i lens
Exif.CanonCs.LensType Short 1 (4143)
Exif.CanonCs.Lens Short 3 18.0 - 55.0 mm
Exif.Canon.LensModel Ascii 74
EF-M18-55mm f/3.5-5.6 IS STM���
Exif.Photo.LensSpecification Rational 4 18/1 55/1 0/1 0/1
Exif.Photo.LensModel Ascii 29
EF-M18-55mm f/3.5-5.6 IS STM
Exif.Photo.LensSerialNumber Ascii 11 0000000000

My suggestion: Canon EF-M 18-55mm f/3.5-5.6 IS STM

I've attached a patch adding these.

(PS, maybe it's a good idea to add a category "lens recognition"?)

exiv2-canon-eos-m-lenses.patch Magnifier (910 Bytes) Pascal de Bruijn, 21 Aug 2012 10:59

eosm.diff Magnifier (844 Bytes) Pascal de Bruijn, 29 Jan 2013 13:05


Related issues

Related to Exiv2 - Bug #876: New lens: Canon EF 35mm f/2 IS USM Closed 11 Jan 2013

History

#1 Updated by Pascal de Bruijn over 4 years ago

Here's an updated patch against current svn.

#2 Updated by Robin Mills over 4 years ago

  • Category changed from exif to metadata
  • Status changed from New to Assigned
  • Assignee set to Robin Mills

Thanks for sending this, Pascal. I'll add them to the test suite at the week-end.

I think we need a category "maker note updates". I use "metadata" for this kind of thing. I believe the forum is maintained by Brad.

I see an obvious issue here with the
Exif.Canon.LensModel Ascii 74 EF-M22mm f/2 STM��d

I've seen this before. The LensModel is an ascii string of 74 bytes. However in reality it is null-terminated and although there are 74 bytes allocated, we should only ascii-print up to the nul byte. I tried a generic fix (all ascii strings are treated as NUL terminated) for this and the test suite reported a unicode issues - so I didn't submit. I'll revisit this.

Robin

#3 Updated by Robin Mills almost 4 years ago

  • Target version changed from 0.24 to 0.25

Deferred to 0.25.

#4 Updated by Robin Mills over 2 years ago

  • Status changed from Assigned to Resolved

I think this has been fixed:

530 rmills@rmillsmm:~/Downloads $ exiv2 -pa -g Lens http://web.canon.jp/imaging/eosd/samples/eosm2/downloads/09.jpg
Exif.CanonCs.LensType                        Short       1  Canon EF-M 22mm f/2 STM
Exif.CanonCs.Lens                            Short       3  22.0 mm
Exif.Canon.LensModel                         Ascii      74  EF-M22mm f/2 STM
Exif.Photo.LensSpecification                 Rational    4  22/1 22/1 0/1 0/1
Exif.Photo.LensModel                         Ascii      17  EF-M22mm f/2 STM
Exif.Photo.LensSerialNumber                  Ascii      11  000000f5c6
531 rmills@rmillsmm:~/Downloads $ 

#5 Updated by Robin Mills almost 2 years ago

  • % Done changed from 0 to 100

#6 Updated by Andreas Huggel almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux