Bug #833

Sony NEX Lens Information

Added by Pascal de Bruijn over 9 years ago. Updated over 6 years ago.

Target version:
Start date:
01 Aug 2012
Due date:
% Done:


Estimated time:


For Sony NEX camera's Exiv2 seems to report conflicting Lens information (though I'm not sure that is fixable, as this is just what Sony embeds):

$ exiv2 -pt DSC02526.JPG | grep -i lens
Exif.Sony1.LensID Long 1 T-Mount | Arax MC 35mm F2.8 Tilt+Shift | Arax MC 80mm F2.8 Tilt+Shift | Zenitar MF 16mm F2.8 Fisheye M42 | Samyang 500mm Mirror F8.0 | Pentacon Auto 135mm F2.8 | Pentacon Auto 29mm F2.8 | Helios 44-2 58mm F2.0 | No Lens
Exif.Photo.LensSpecification Rational 4 180/10 550/10 35/10 56/10
Exif.Photo.LensModel Ascii 23 E 18-55mm F3.5-5.6 OSS

And I find the Exif.Sony1.LensID values rather odd:

{ 65535, "T-Mount | " 
"Arax MC 35mm F2.8 Tilt+Shift | "
"Arax MC 80mm F2.8 Tilt+Shift | "
"Zenitar MF 16mm F2.8 Fisheye M42 | "
"Samyang 500mm Mirror F8.0 | "
"Pentacon Auto 135mm F2.8 | "
"Pentacon Auto 29mm F2.8 | "
"Helios 44-2 58mm F2.0 | "
"No Lens" }

Shouldn't that be exclusively "Manual lens", instead of listing every possible manual lens (which is going to be a very long list :)


exiv2-sonyminolta-manual-lens.diff (940 Bytes) exiv2-sonyminolta-manual-lens.diff Pascal de Bruijn, 01 Aug 2012 05:54

Associated revisions

Revision 3765 (diff)
Added by Robin Mills over 6 years ago

#833. Thanks to Torsten and Pascal. Change Minolta 65535 (-1) to "Manual lens" from "E-Mount, T-Mount, Other Lens or No Lens"



Updated by Robin Mills over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Robin Mills
  • Target version set to 0.25


Do you have a test image that I can use to investigate this.


Updated by Pascal de Bruijn over 6 years ago

This is more of a conceptual problem than an EXIF parsing issue.

Sony seems to use ID 65535 when there are no electronic connected to the lens mount. Thus it makes no sense to make any particular lens claim.

This issue already has been partially cleaned up here:

However, I think the current output is still slightly misleading. When there are no electronic available it's actually unlikely there was an E-Mount lens detected (since E-Mount lenses have electronics, and there it certainly no reason to think it may be a T-Mount lens above anything else at all. Since you can get manual mount adapters for pretty much anything these days.

Returning "No lens" doesn't seem to useful either, as this tends to be fairly obvious to differentiate since the image will just be a big blur or something along those lines.

So "Manual lens" is the only return value that seems to make sense to me. Unless I'm missing something.


Updated by Torsten Bronger over 6 years ago

I have uploaded an ARW with a picture taken with my NEX-7 and a manual lens here:


Updated by Robin Mills over 6 years ago

Fix submitted r3765. Thanks to Torsten and Pascal for your input and help with this. I agree 100% with Pascal's logic. The only sensible thing is to say "Manual Lens".


Updated by Robin Mills over 6 years ago

  • Status changed from Assigned to Resolved

Updated by Robin Mills over 6 years ago

  • % Done changed from 0 to 100

Updated by Andreas Huggel over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF