Project

General

Profile

Bug #10029

Lens is not correctly detected for new NEX (ILCE-6000)

Added by Cyril LEVIS over 4 years ago. Updated over 4 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
-
Start date:
07/04/2012
Due date:
% Done:

100%

Affected Version:
git stable branch
System:
Fedora/RHEL
bitness:
64-bit
hardware architecture:
amd64/x86

Description

If I load a JPEG, the lens given by Darktable is always "T-Mount Arax 35mm Tilt+Shift", which is not correct. In the module to correct lens distortions, I cannot select another lens. The EXIF data in the file is correct.

DSC02526.JPG - Original JPEG from the camera which exhibits the problem described in this issue. (608 KB) Torsten Bronger, 07/05/2012 03:19 PM


Related issues

Copied from darktable - Bug #8813: Lens is not correctly detected Fixed 07/04/2012

History

#1 Updated by Cyril LEVIS over 4 years ago

  • Copied from Bug #8813: Lens is not correctly detected added

#2 Updated by Cyril LEVIS over 4 years ago

Hi,

I have the same problem with Sony Alpha 6000. His name is ILCE-6000 in exiv2 datas.

This is the what i have added and tested, its works. (based on Pascal de Bruijn patch)

    // Workaround for an issue on newer Sony new NEX cams.
    // The default EXIF field is not used by Sony to store lens data
    // http://dev.exiv2.org/issues/883
    // http://darktable.org/redmine/issues/8813
    // FIXME: This is still a workaround
    if(!strncmp(img->exif_model, "ILCE", 4))
    {
      snprintf(img->exif_lens, sizeof(img->exif_lens), "(unknown)");
      if ( (pos=exifData.findKey(Exiv2::ExifKey("Exif.Photo.LensModel"))) != exifData.end() && pos->size())
      {
        std::string str = pos->print(&exifData);
        snprintf(img->exif_lens, sizeof(img->exif_lens), "%s", str.c_str());
      }
    };

Regards

#3 Updated by Pascal de Bruijn over 4 years ago

  • % Done changed from 0 to 100
  • Target version changed from Candidate for next patch release to Candidate for next major release
  • Status changed from New to Fixed

Also available in: Atom PDF