This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Maybe a bug?] Gwenview does not show PBM images properly

Tags: None
(comma "," separated)
danielga
Registered Member
Posts
2
Karma
0
OS
A few weeks ago, my professor has assigned my class with the task of reading an "encoded" PBM image from the disk, decode it, do some processing, and then write the final image back. PBM stands for "portable bitmap format", and is part of the Netpbm open-source project. So far, so good, i have finished my homework and passed it. However, when i inspected the intermediate decoded results with Gwenview (to make sure my program was working correctly), i saw some weird behavior:

https://ibb.co/pj9Vs6W

The above image was generated by the following code:
Code: Select all
P1
6 10
000010000010000010000010000010000010100010011100000000000000


As strange as it may seem, this similar code has generated the correct results, although Netpbm format doesn't require each bit to be separated by spaces in a matrix-like format:
Code: Select all
P1
6 10
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
1 0 0 0 1 0
0 1 1 1 0 0
0 0 0 0 0 0
0 0 0 0 0 0


Generated image:
https://ibb.co/xzxzj3V

In fact, this weird behavior doesn't affect only Gwenview. It happens with Dolphin file browser, KolourPaint and a lot of KDE related apps. I suspect this problem is related to some KDE library, but i'm not sure. Any replies about this topic are welcomed.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]