Krita writes incorrect PNG files

Bug #309352 reported by cologic
2
Affects Status Importance Assigned to Milestone
koffice (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: krita

Steps to reproduce:

(1) Install krita and pngcheck:

||/ Name Version Description
+++-=================================================-=================================================-==================================================================================================================
ii dcraw 8.80-1 decode raw digital camera images
ii koffice-data 1:1.6.3-6ubuntu3 common shared data for the KDE Office Suite
ii koffice-libs 1:1.6.3-6ubuntu3 common libraries and binaries for the KDE Office Suite
ii krita 1:1.6.3-6ubuntu3 a pixel-based image manipulation program for the KDE Office Suite
ii krita-data 1:1.6.3-6ubuntu3 data files for Krita painting program
ii latex-xft-fonts 0.1-8 Xft-compatible versions of some LaTeX fonts
ii libruby1.8 1.8.7.72-1ubuntu0.1 Libraries necessary to run Ruby 1.8
ii pngcheck 2.0.0-1.1 PNG file format checker
ii ruby 4.2 An interpreter of object-oriented scripting language Ruby
ii ruby1.8 1.8.7.72-1ubuntu0.1 Interpreter of object-oriented scripting language Ruby 1.8

(2) Open Krita.
(3) Select Grayscale -> "White Background, 640x480".
(4) Click "Use this template".
(5) Save unmodified (or modified - but triggering this behaviour doesn't depend on modifying the image) the newly created image to a PNG file. I tried both the "Fast" and "Small" ends of the compression level setting and both produce PNGs ill-formed according to png-check.

(6) Run pngcheck -v on the resulting image (this output is from the 'fast' image, not the one attached to this bug):
File: test.png (2396 bytes)
  chunk IHDR at offset 0x0000c, length 13
    640 x 480 image, 8-bit grayscale, non-interlaced
  chunk sRGB at offset 0x00025, length 1
    rendering intent = absolute colorimetric
  chunk iCCP at offset 0x00032, length 216: not allowed with sRGB

Expected results: a correct PNG file. What happened instead: an apparently (although it's possible pngcheck is wrong, it gives a detailed reason for its diagnosis) incorrect PNG file.

Revision history for this message
cologic (cologic) wrote :
Revision history for this message
cologic (cologic) wrote :

http://code.google.com/p/imagetestsuite/wiki/PNGTestSuite (search for the phrase "not allowed with sRGB") suggests that this is a real error being reported by pngcheck and thus a real bug with krita. Further, I'm now using Kubuntu 9.04 and tested krita-kde4 with the same error occurring. Package versions:

ii koffice-data-kde4 1:1.9.99.9-0ubuntu1 common shared data for the KDE Office Suite
ii koffice-libs-kde4 1:1.9.99.9-0ubuntu1 common libraries and binaries for the KDE Of
ii krita-data-kde4 1:1.9.99.9-0ubuntu1 data files for Krita painting program
ii krita-kde4 1:1.9.99.9-0ubuntu1 a pixel-based image manipulation program for
ii pngcheck 2.0.0-1.1 PNG file format checker

Changed in koffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

A report about this should probably be filed at bugs.kde.org, as this is still an issue with Krita 2.1.1.

Changed in koffice (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.