Bug 82599 - konqueror cannot display some png files (http://www.cs.ubc.ca/~bansal/test/).
Summary: konqueror cannot display some png files (http://www.cs.ubc.ca/~bansal/test/).
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml image part (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-31 21:07 UTC by Nilesh Bansal
Modified: 2005-03-20 19:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
One of the offending images (4.10 KB, image/png)
2004-06-04 16:24 UTC, Waldo Bastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nilesh Bansal 2004-05-31 21:07:59 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs
Compiler:          gcc with SuSE 9.1 
OS:                Linux

Konqueror is not able to display certain png files (created using xfig). 
http://www.cs.ubc.ca/~bansal/test/
I have tried viewing above page in konqueror on SuSE9.1, FC2 and RH9 machine and in all cases konqueror is not able to show any of the two images, while mozilla/firefox works.
These images are created by xfig on FC2.
Comment 1 Waldo Bastian 2004-06-04 16:24:32 UTC
Created attachment 6248 [details]
One of the offending images
Comment 2 Waldo Bastian 2004-06-04 17:15:59 UTC
Image is treated as movie by khtml/misc/loader.cpp
QMovie shows first frame as intended and then finds a second frame that blanks the image.

No idea why xfig creates images like that... seems broken to me.
Comment 3 Daniel Toth 2004-10-23 02:23:40 UTC
Ghostscript also creates such images (under some conditions i am not certain about)
Several examples can be found in this page: 
http://ronja.twibright.com/metropolis/dist.php

The image shows up for just a moment, then goes white. If I open the image alone in a new tab the tab title says 'PNG Image - 0x0 pixels'

If I run any of them trough the pngcheck (http://www.libpng.org/pub/png/apps/pngcheck.html) utility i get something like this:

bash-3.00$ pngcheck -v -7 flux_50m_small.png
File: flux_50m_small.png (24417 bytes)
  chunk IHDR at offset 0x0000c, length 13
    256 x 372 image, 24-bit RGB, non-interlaced
  chunk pHYs at offset 0x00025, length 9: 2834x2834 pixels/meter (72 dpi)
  chunk tEXt at offset 0x0003a, length 29, keyword: Software
    GNU Ghostscript 7.07
  chunk IDAT at offset 0x00063, length 8192
    zlib:  deflated, 32K window, default compression
  chunk IDAT at offset 0x0206f, length 8192
  chunk IDAT at offset 0x0407b, length 6766
  chunk IEND at offset 0x05af5, length 0
  additional data after IEND chunk

Note the last line, which is common for all the broken pngs.
Comment 4 t35t0r t35t0r 2005-03-19 18:31:29 UTC
the png's above work with konq 3.3.2
Comment 5 Nilesh Bansal 2005-03-20 19:12:44 UTC
Also works well with Konqueror 3.4.0