Patch #839
Canon EOS M EF-M lenses
100%
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"?)
Files
Related issues
History
Updated by Pascal de Bruijn almost 9 years ago
Here's an updated patch against current svn.
Updated by Robin Mills almost 9 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
Updated by Robin Mills almost 7 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 $