Bug 347721

Summary: Gwenview does not show PNM images (portable-anymap)
Product: [Applications] gwenview Reporter: Eumel <blaueshawaiihemd>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: ap10336, myriam
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: https://bugs.launchpad.net/ubuntu/+source/kdelibs4support/+bug/1460417
Latest Commit: Version Fixed In:

Description Eumel 2015-05-14 14:12:36 UTC
On opening a pnm graphic, Gwenview (vivid, version 4:14.12.3-0ubuntu1) displays the following error message:

Loading ‘foo.pnm’ failed
Gwenview cannot display documents of type image/x-portable-anymap.

Also, during scanning, when the file is named foo.pnm.part, gwenview displays the image (partially, with the bottom black, according to scanning progress)

Reproducible: Always

Steps to Reproduce:
1. Have PNM file.
2. Open it with gwenview
3.

Actual Results:  
Error Message:

Loading ‘foo.pnm’ failed
Gwenview cannot display documents of type image/x-portable-anymap.


Expected Results:  
Gwenview displays PNM
Comment 1 Eumel 2015-05-31 12:01:47 UTC
I did further research and found out that  /usr/share/kservices5/qimageioplugins/pnm.desktop
was missing in my install for some reason unknown to me.
I then copied it from /usr/share/kde4/services/qimageioplugins/pnm.desktop
and now it works. Note that pgm and pbm files were present.

Seems to be some kind of packaging problem: Either the file is missing in the package, or it is not generated on install.
Comment 2 Alex10336 2016-10-31 20:17:59 UTC
Same on Kde Neon - User Edition

Open *.pnm file say can not opened. remove extension « .pnm », gwenview open file correctly.

(I'll attach a test file)

----
Version 16.08.2

KDE Frameworks 5.27.0
Qt 5.7.0 (built against 5.7.0)
The xcb windowing system
Comment 3 Alex10336 2016-10-31 20:28:52 UTC
Due to file huge size, more than 4000k allowed here... uploaded on launchpad: https://bugs.launchpad.net/gwenview/+bug/1460417/+attachment/4770251/+files/abc-gray.pnm
Comment 4 Christoph Feck 2016-11-02 18:08:38 UTC
Rename the file to *.ppm, *.pgm, or *.pbm, depending on the actual image type.
Comment 5 Alex10336 2016-11-02 18:11:51 UTC
It's .pnm file. generated by « scanimage ».

( http://linuxcommand.org/man_pages/scanimage1.html )
Comment 6 Christoph Feck 2016-11-02 18:41:49 UTC
https://bugreports.qt.io/browse/QTBUG-56876
Comment 7 Alex10336 2016-11-03 21:30:35 UTC
Thanks for forwarding issue.
Comment 8 Christoph Feck 2016-11-14 23:16:57 UTC
Bug accepted upstream.