Summary: | inverted representation of PNG image | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Lukas Mueller <lukas> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, hausmann, nicolasg |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Pixmap from the original web pages |
Description
Lukas Mueller
2000-12-02 16:00:02 UTC
I can reproduce this with KDE 2.2.1. I made some black/white bitmaps in GIMP and tried to use them in the documentation file of an application I'm working on. But they were inverted. Of course I tried to invert the images in GIMP and save them but they are still inverted in konqueror and the help browser. Very annoying. This still occurs, and it seems that it only occurs with indexed PNG images. I painted one pixel into the picture (which was non-pure black and non-pure white (e.g. something else than #000000 and #FFFFFF)) - and that changed the result. I assume that this is not a QT library bug, since PNG images with two colors are shown correctly by the QT functions. Reproducible with KDE 3.1-rc5 and QT 3.1.0 Timo: could you perhaps attach your test images here, so they don't get lost, etc.? Maskim: Just have a look at the top URL. You can also reproduce it in GIMP very easily. I have to admit that I don't have these pics anymore, maybe I'll create a new set when I got GIMP installed again :) Remark: Still not fixed with current CVS. This is a QT bug. I save the bitmap at the top of www.ogz.ch and pasted it as a PixMap in a dialog with the current qt-copy version of Qt Designer. It also shows up wrongly. Created attachment 1214 [details]
Pixmap from the original web pages
This pixmap shows up white on a black background. It should be opposite.
<I filed this bug with Trolltech. It received ticket number N19076. Here is a reply I got today.> Hi tom Sorry about the delay in answering. We will not be able to fix this in a while for compatibility reasons. We'll look into something for the next major release though. You should probably fix your image by providing a real color table. best regards Anders Bakken -- Trolltech AS, Waldemar Thranes gate 98, NO-0175 Oslo, Norway This is a known bug and there is a known work-around (see bug #30357) QPixmap pix; QImage img; pix.convertFromImage(img, QPixmap::Color); Have a nice day! Back to Konqueror/HTML, as there is aknown work-around for this bug. Have a nice day! Bug is reproducable in CVS Head from 3.11.03 The image shows black text in white foregroung in CVS 11/11/2003. So I think this bug is fixed. *** Bug has been marked as fixed ***. |