Bug #1378

Sigma 24mm f/2.8 on Canon body

Added by Claude Jolicoeur 12 months ago. Updated 12 months ago.

Start date:
27 Feb 2019
Due date:
% Done:


Estimated time:
1.00 h


When this lens is used on a Canon Rebel XTi (APS-C), Exiv2 improperly reports the lens to be "Canon EF 28mm f/2.8".
This Sigma lens is present on the Lensfun project and identified as: "Sigma 24mm f/2.8 Super Wide II", which is its complete correct name. This is a pretty old lens, having been released during the 1990s and now discontinued, but it still works fine on modern cameras.
exiv2 -pt command reports: Exif.CanonCs.LensType Short 1 Canon EF 28mm f/2.8
exiv2 -pv command reports: 0x016 CanonCs LensType Short 1 2
The focal length is reported correctly at 24mm (in the case of -pv command, I get: 24 24 1)
Thank you for considering this.



Updated by Robin Mills 12 months ago

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

We get several requests every week to support new lenses. You can usually fix this for yourself with the file: ~/.exiv2

If you're unable to get your lens to work with ~/.exiv2, please report an issue on as we are planning to make this forum "ReadOnly". Please attach a test file from your camera using the lens. You may leave the lens cap on, if you wish.


Updated by Claude Jolicoeur 12 months ago

Thank you Robin.
From the reading I have done since I first posted this request, I understand the config file (~/.exiv2) has been implemented in version 0.26 and is thus not available in earlier versions of exiv2 - is that correct?

The problem that remains is that ubuntu's PPAs only have version 0.25 of exiv2, and this is also the version that comes with the latest darktable. Is there an easy way to install version 0.26? (by easy I mean a way where I wouldn't have to compile the code, as I don't have the competences for this)...



Updated by Robin Mills 12 months ago


Yes. You can download binaries from for your platform (Linux, MacOS-X, msvc, Cygwin, MinGW). Please read ReadMe.txt in the downloaded bundle for an explanation of how to install the libraries on your platform.

In future, all correspondence concerning Exiv2 will be on If you wish to discuss this further, please open an issue on GitHub.


Also available in: Atom PDF