Bug 191288

Summary: CRC error in chunk zTXt
Product: [Applications] digikam Reporter: nqwvwpbw
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ahuggel, caulier.gilles
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0

Description nqwvwpbw 2009-05-01 20:57:57 UTC
Version:           0.10.0 (using KDE 4.2.2)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Ubuntu Packages

If I load a RAW (with metadata) in digikam, save it as a PNG and test it with pngcheck (2.0.0), this is what I get: "CRC error in chunk zTXt (actual d550028e, should be f690a1e1)".

Note that:
* this occours always (with digikam-converted PNGs)
* I don't know if it's the same with other image formats
* digikam reads its PNG's metadata just right
Comment 1 caulier.gilles 2009-05-01 23:31:49 UTC
Use last Exiv2 0.18.1 with digiKam/libkexiv2 and try again...

Gilles Caulier
Comment 2 nqwvwpbw 2009-05-02 15:29:53 UTC
I've tried but nothing changes.
Comment 3 caulier.gilles 2009-05-02 16:10:44 UTC
CRC is computed and set by Exiv2 library, not digiKam directy. Can you reproduce it when you change something in PNG using Exiv2 command line tool ?

Gilles Caulier
Comment 4 nqwvwpbw 2009-05-02 17:07:46 UTC
Yes, I was able to reproduce it (I've used this command: exiv2 -M"set Exif.Photo.UserComment charset=Ascii New Exif comment" no_metadata.png).
Comment 5 caulier.gilles 2009-05-02 17:10:53 UTC
Well, it's a bug in Exi2 PNG image parser...

Gilles
Comment 6 nqwvwpbw 2009-05-02 17:15:01 UTC
Thank you for your help.
Comment 7 Andreas Huggel 2009-05-03 02:05:08 UTC
Can you please attach the image no_metadata.png here, or better, open an issue for Exiv2 with the same instructions and image to reproduce the problem at http://dev.exiv2.org/projects/exiv2/issues

Thanks,
Andreas
Comment 8 nqwvwpbw 2009-05-03 10:39:11 UTC
I've opened an issue for exiv2 with the two images.
I think that this bug can now be closed.
Comment 9 caulier.gilles 2009-06-12 14:10:54 UTC
Exiv2 file open here : http://dev.exiv2.org/issues/show/630

Gilles Caulier
Comment 10 caulier.gilles 2009-06-14 18:07:35 UTC
See my comment in : http://dev.exiv2.org/issues/show/638

Exiv2 r1818 fix the problem.

Gilles Caulier