-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
corrupted image metadata error on preview extraction of DNG image #1829
Comments
Hi @paolobenve, thanks a lot for reporting this bug 👍 This was indeed a bug in exiv2 and not the DNG converter. |
Well, I'm wondering... I have been working with dng's for 3 years, all converted from CR3 coming from the same camera (Canon g5xm2), all converted with Adobe DNG converter...., and I never got this error... The only difference from when I didn't got the error is that now I'm on a different pc, and I had to reinstall Adobe DNG Converter, perhaps I installed a different version? but dng is a standard, I cannot undestrand why the bug begun appearing now... |
I'm also not sure, but if you look at the description of the pull request, there I go into a bit more detail about how a preview image can apparently be composed of one large chunk or multiple smaller ones. The error was triggered in the code path handling a preview image with multiple smaller chunks. So it could just be that this different DNG Converter adds more previews to the DNG? or just changed the method of how it inserts these previews? |
in order to dive better inside the issue, I'm attacching a dng which doesn't produce the error: It was generated with a (supposedly) previous version of Adobe DNG converter |
@paolobenve I've had a quick look at the 2nd picture and it has one less preview inside it and the previews that it does have, are all encoded in one large chunk. I've no idea what exactly changed, but it seems to be that my first guess was right. Lucky for us, as we were able to find this bug thanks to you 😉 |
no, same camera, same firmware
maybe
I tried different settings, the bug kept there |
Not sure if more detective work is really worth it. The fix has been merged, and will be available in the 0.27.5 release, which is planned for around September and it's already available via the nightly pre-releases |
I have the attached dng (I zipped it in order to get it accepted by the editor), I got it from a CR3 with Adobe DNG converter x64 13.3 IMG_7463.dng.zip
I get:
my exiv2 is 0.27.2, I'm on ubuntu 20.04
Since dng has been created by Adobe, it seems weird that their converter generate a corrupted image...
Is it an exiv2 bug? or is there any other reason why exiv2 sees this dng as corrupt?
The text was updated successfully, but these errors were encountered: