Bug #630
CRC error in chunk zTXt
100%
Description
If a metadata is written in a PNG image using exiv2 (I've tested 0.18 and 0.18.1) and that image is checked using pngcheck (2.0.0), a tipical result is: "CRC error in chunk zTXt (actual 2953764d, should be 47edf1a1)".
Files
Related issues
Associated revisions
History
Updated by Andreas Huggel over 12 years ago
- File pngchunk.zip pngchunk.zip added
- Priority changed from Normal to High
Attached bugfix from Jochen Schug: "Important as IE7 and IE8 don't accept images with wrong CRC."
Updated by Andreas Huggel over 12 years ago
- Category set to image format
- Status changed from New to Resolved
- % Done changed from 0 to 100
The CRC issue seems to be fixed with the patch from Jochen. Will open another bug for the remaining issues.
Updated by Andreas Huggel over 12 years ago
Updated by Andreas Huggel over 12 years ago
gegio 0, can you please test with r1816 and confirm if the fix is ok?
Updated by Gilles Caulier over 12 years ago
Andreas Huggel wrote:
gegio 0, can you please test with r1816 and confirm if the fix is ok?
Andreas,
Just played with last Exiv2 code and digiKam : I have save a JPEG image to PNG with editor. Reloading PNG in digiKam give this error from the console:
digikam(15542)/digikam (core) Digikam::DImg::load: "/mnt/data/photos/Albums/Test Pictures/METADATA/Vista/Dock.png" : PNG file identified
libpng warning: iTXt: CRC error
Image has Exif, IPTC, and XMP. Exif and Iptc are stored to zTXt chunk. So it's fixed for that.
XMP is stored to iTXt following Adobe paper. This one is not yet fixed...
Gilles Caulier
Updated by Andreas Huggel over 12 years ago
Gilles, thanks for testing. Can you elaborate:
digikam(15542)/digikam (core) Digikam::DImg::load: "/mnt/data/photos/Albums/Test Pictures/METADATA/Vista/Dock.png" : PNG file identified
libpng warning: iTXt: CRC errorImage has Exif, IPTC, and XMP. Exif and Iptc are stored to zTXt chunk. So it's fixed for that.
The CRC error should not be there anymore. Why do you say it's fixed?
XMP is stored to iTXt following Adobe paper. This one is not yet fixed...
Is this a different problem? If so, can you please open an issue and explain a bit more what is needed? I'm about to check-in a fix for #638, maybe that's related somehow. Hold on a moment...
Andreas
Updated by Andreas Huggel over 12 years ago
Andreas Huggel wrote:
Gilles, thanks for testing. Can you elaborate:
digikam(15542)/digikam (core) Digikam::DImg::load: "/mnt/data/photos/Albums/Test Pictures/METADATA/Vista/Dock.png" : PNG file identified
libpng warning: iTXt: CRC errorImage has Exif, IPTC, and XMP. Exif and Iptc are stored to zTXt chunk. So it's fixed for that.
The CRC error should not be there anymore. Why do you say it's fixed?
XMP is stored to iTXt following Adobe paper. This one is not yet fixed...
Is this a different problem? If so, can you please open an issue and explain a bit more what is needed? I'm about to check-in a fix for #638, maybe that's related somehow. Hold on a moment...
Andreas
I get it in the meantime. All CRC warnings should be fixed with r1818
#630: Fixed CRC error in chunk zTXt (Jochen Schug).