Cannot extract exif data from Pentax K-x DNG file
|Status:||Closed||Start date:||08 Feb 2011|
|Assignee:||Andreas Huggel||% Done:|
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.
#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.