Bug 147130

Summary: konqueror: internal viewer for png graphics wrongly says: 16x16 pixel
Product: [Applications] konqueror Reporter: Toralf Förster <toralf.foerster>
Component: khtml image partAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: finex, kollix, rpogomes
Priority: NOR    
Version: 4.6.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Toralf Förster 2007-06-23 15:45:29 UTC
Version:           3.5.5 (using KDE 3.5.5, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.20-gentoo-r8

and doesn't show this picture :
 http://www.kernel.org/pub/linux/kernel/people/gregkh/kernel_history/developer_graph-2.6.22.png
Comment 1 Rui G. 2008-06-12 23:44:17 UTC
I can see the picture in konq3 (3.5.9) but I can't in konq4 (trunk rev.819999) with the same issue you say. Can't you open it in a recent version? My guess is there is a library issue, but it's just a guess.
Comment 2 Toralf Förster 2008-06-13 09:27:18 UTC
I've 3.5.9 currently. BTW firefox-2 can't display the graphics too. Probably an issue at my platform (stable Gentoo) with the png library ?
Comment 3 Rui G. 2008-06-13 22:28:29 UTC
I'm using binary packages for 3.5.9 in arch, so maybe a build was done with a previous version of libpng , but for trunk I used this one: libpng 1.2.28 . What is yours?
Comment 4 Toralf Förster 2008-06-13 22:33:38 UTC
The stable Gentoo package is media-libs/libpng-1.2.26-r1
Comment 5 Rui G. 2008-07-11 13:30:27 UTC
In opensuse 11.0 , konq 3.5.9 can't open the file. With konq4 it uses a lot of ram to try and open it, and it succeeds. Konq3 displays  the same error as described in the bug report, and curiously libpng's version is 1.2.26 . 

And I upgraded libpng to 1.2.29 and the issue is still the same. But konq3 was really trying to open the file, and it was also using a lot of ram in the process, and it stopped after a while ( maybe the same happened with libpng 1.2.26, didn't notice ).

It's curious how it works in some distributions and not in others. If I find out why this happens, I'll post it.
Comment 6 FiNeX 2009-11-29 23:08:14 UTC
OpenSuse 11.2, Konqueror 4.3.77, it displays the image correctly.
Comment 7 Toralf Förster 2009-12-12 18:15:30 UTC
The issue still exists within kde 4.3.3 under a stable Gentoo
Comment 8 Tommi Tervo 2009-12-12 19:40:07 UTC
If gwenview is the default image viewer, then pic is displayed correctly. default image viewer throws following error. 

kio_file(26449)/kio (kioslave) KIO::SlaveBase::mimeType: "image/png"
libpng error: Decompression Error
konqueror(28648)/kimgio khtmlImLoad::QImageIOLoaderProvider::loaderFor: QImageIO - Format guessed:  "jpeg"
Corrupt JPEG data: 660 extraneous bytes before marker 0x1c
Unsupported marker type 0x1c
Corrupt JPEG data: 660 extraneous bytes before marker 0x1c
Unsupported marker type 0x1
Comment 9 Martin Koller 2011-06-23 22:45:46 UTC
Still a problem in 4.6.4.
A testprogram using Qts QImage can load and display the image.
Comment 10 Christoph Cullmann 2024-05-06 20:54:52 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann