Project

General

Profile

Bug #759

Cannot extract exif data from Pentax K-x DNG file

Added by Kenneth Bogert almost 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
exif
Target version:
Start date:
08 Feb 2011
Due date:
% Done:

100%

Estimated time:

Description

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.


Files

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

Associated revisions

Revision 2444 (diff)
Added by Andreas Huggel almost 11 years ago

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

Revision 2445 (diff)
Added by Andreas Huggel almost 11 years ago

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

Revision 2446 (diff)
Added by Andreas Huggel almost 11 years ago

#759: Enhanced documentation.

Revision 2448 (diff)
Added by Andreas Huggel almost 11 years ago

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

History

#1

Updated by Andreas Huggel almost 11 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 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF