Bug 188599

Summary: PGM images are decoded incorrectly
Product: [Unmaintained] kview Reporter: baeuml
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: finex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: test pgm image which my kview cannot decode correctly

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 :-)