Bug 188599 - PGM images are decoded incorrectly
Summary: PGM images are decoded incorrectly
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kview
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 14:57 UTC by baeuml
Modified: 2009-07-05 11:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
test pgm image which my kview cannot decode correctly (134.08 KB, application/octet-stream)
2009-04-01 15:00 UTC, baeuml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description baeuml 2009-04-01 14:57:18 UTC
Version:           3.5.9 (using KDE 3.5.9)
OS:                Linux
Installed from:    SuSE RPMs

A PGM image with 16bit depth is not displayed/decoded correctly.

The images header is
P5
156 440
65535
<lots of data follows>

Steps to reproduce:
1. use `convert` to to convert a color image to gray scale pgm:
$ convert test.png -colorspace Gray test.pgm
2. confirm that it has 16bit depth: open test.pgm in an editor, the 3rd line should contain 65535
3. open test.pgm with kview

Expected result:
the original image in gray scale

Actual result:
somewhat distorted version of the image



If one converts the original image to an *8bit* gray scale pgm, e.g. with 
$ convert test.png -colorspace Gray -depth 8 test.pgm
kview can display the resulting pgm image correctly.
Comment 1 baeuml 2009-04-01 15:00:09 UTC
Created attachment 32521 [details]
test pgm image which my kview cannot decode correctly
Comment 2 FiNeX 2009-07-05 11:35:55 UTC
Kview is no more mantained/developed. This bug wish will not be fixed until a
new developer will work on it. Moreover this product is not ported to KDE4. On
KDE4 it has been replaced by gwenview. I'm closing this bug as
"unmantained". I'm sorry.

I suggest you to try KDE 4 :-)