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
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.
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
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
Rename the file to *.ppm, *.pgm, or *.pbm, depending on the actual image type.
It's .pnm file. generated by « scanimage ». ( http://linuxcommand.org/man_pages/scanimage1.html )
https://bugreports.qt.io/browse/QTBUG-56876
Thanks for forwarding issue.
Bug accepted upstream.