Bug #759

Cannot extract exif data from Pentax K-x DNG file

Added by Kenneth Bogert almost 8 years ago. Updated over 6 years ago.

Status:ClosedStart date:08 Feb 2011
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:


Target version:0.21.1


When trying to extract the exif data from any DNG file created by my Pentax K-x, exiv2 gives the error - Could not write metadata to file: Size of Exif JPEG segment is larger than 65535 bytes

I can view the exif data on these files with exiv2 without a problem. Also exiv2 works correctly on PEF files from the same camera.

Example file attached.

IMGP0432.DNG (10.9 MB) Kenneth Bogert, 08 Feb 2011 21:21

Associated revisions

Revision 2444
Added by Andreas Huggel almost 8 years ago

#759: Do not write Exif.Image.DNGPrivateData to JPEGs.

Revision 2445
Added by Andreas Huggel almost 8 years ago

#759: Undid r2444. Instead, don't encode any tags larger than 40kB as a last resort when writing to JPEGs.

Revision 2446
Added by Andreas Huggel almost 8 years ago

#759: Enhanced documentation.

Revision 2448
Added by Andreas Huggel almost 8 years ago

[0.21.1] Merged fix for #759 from the trunk (r2443:2446).


#1 Updated by Andreas Huggel almost 8 years ago

  • Category set to exif
  • Status changed from New to Resolved
  • Assignee set to Andreas Huggel
  • Target version set to 0.21.1
  • % Done changed from 0 to 100

These DNGs have all makernote information in Exif.Image.DNGPrivateData, which Exiv2 currently doesn't decode (see #758).
The size of this tag is 100kB in the sample image provided here. ExifParser::encode now also deletes known tags larger than 40kB, i.e., it won't write Exif.Image.DNGPrivateData to the extracted JPEG segment. However, in this case, that also means that a lot of information is not extracted.

#2 Updated by Andreas Huggel over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux