[Bug 188599] New: PGM images are decoded incorrectly

baeuml at gmail.com baeuml at gmail.com
Wed Apr 1 13:57:19 BST 2009


https://bugs.kde.org/show_bug.cgi?id=188599

           Summary: PGM images are decoded incorrectly
           Product: kview
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: baeuml at gmail.com


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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list