unable to export DNG: size of Exif JPEG segment larger than 65535 bytes
Submitted by Adam Dingle
Link to original bug (#716349)
Description
---- Reported by adam@yorba.org 2010-06-28 10:07:00 -0700 ----
Original Redmine bug id: 2221
Original URL: http://redmine.yorba.org/issues/2221
Searchable id: yorba-bug-2221
Original author: Adam Dingle
Original description:
From Peter Smith pdo.smith@gmail.com:
After having imported DNG files from my camera I tried to launch an external editor “Open with external editor†and got the following error
Unable to launch editor: Size of Exif JPEG segment is larger than 65535 bytes. However if I open with RAW editor it launches Ufraw and everything works properly.
===
OK, here is an example of a file that causes the problem: http://www.mediafire.com/file/jzng3zz0qto/IMGP8875.%(=caps)DNG%
It seems to happen with all my DNG files.
I tried importing the file and I can reproduce this. I also receive the same error (Size of Exif JPEG segment is larger than 65535 bytes) if I try to export the photo from Shotwell as a JPEG.
Related issues:
- related to shotwell - 6442: The Shotwell development of camera raw files with EXIF se... (Invalid)
---- Additional Comments From shotwell-maint@gnome.bugs 2013-05-16 14:45:00 -0700 ----
History
Comment 1
Updated by Adam Dingle over 3 years ago
- Subject changed from unable to export: size of Exif JPEG segment larger than 65535 bytes to unable to export DNG: size of Exif JPEG segment larger than 65535 bytes
Comment 2
Updated by Jim Nelson over 3 years ago
- Priority set to High
Verified. It appears that DNG files support EXIF blocks larger than 64K, which is the hard upper limit for JPEG files. When you edit with an external editor, we essentially export the RAW file to JPEG (this is why export fails as well) and then copy the metadata from the RAW file to the JPEG file. This fails, causing the entire operation to fail.
We won't be able to attack this problem in time for 0.6. We should be able to correct this for 0.7, however.
Comment 3
Updated by Omer Akram about 3 years ago
also reported at: https://bugs.launchpad.net/ubuntu/source/shotwell/bug/675023
Comment 4
Updated by Adam Dingle about 3 years ago
Jim explained that we can address this by stripping embedded JPEGs. (If the remaining EXIF data is still over 64K then perhaps we can remove it entirely and/or store it using XMP instead.)
Comment 5
Updated by Adam Dingle about 3 years ago
-
Priority deleted (
<strike>
_High_</strike>
)
Comment 6
Updated by Jim Nelson almost 3 years ago
I've seen this error with an SRW file as well when I select Open with External Editor. The bug is essentially the same: we can't convert RAW to JPEG with the oversized EXIF block.
Comment 7
Updated by Jim Nelson 9 months ago
- Description updated (diff)
- Category set to raw
- Priority changed from Low to High
- Target version set to 0.15.0
This is fundamentally broken and I'd like to see this fixed, but we won't be able to attack this right now. We'll shoot for this in 0.15.
Comment 8
Updated by Jim Nelson 8 months ago
- Assignee set to Clinton Rogers
- Keywords set to needs-testing
Let's see if Exiv2 0.23 fixes this in any way.
Comment 9
Updated by Lucas Beeler 8 months ago
- Status changed from Open to Need Information
Setting to Needs Information since we need to test this with the new version of exiv2.
Comment 10
Updated by Jim Nelson 7 months ago
- Status changed from Need Information to Open
- Assignee changed from Clinton Rogers to Jim Nelson
Quantal ships with 0.23, so if that version fixes this problem, we can close this ticket.
Comment 11
Updated by Jim Nelson 6 months ago
-
Target version deleted (
<strike>
_0.15.0_</strike>
)
Comment 12
Updated by Jim Nelson 6 months ago
-
Assignee deleted (
<strike>
_Jim Nelson_</strike>
)
--- Bug imported by chaz@yorba.org 2013-11-25 21:45 UTC ---
This bug was previously known as bug 2221 at http://redmine.yorba.org/show_bug.cgi?id=2221
Unknown version " in product shotwell. Setting version to "!unspecified". Unknown milestone "unknown in product shotwell. Setting to default milestone for this product, "---". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one. Resolution set on an open status. Dropping resolution