Okular does not open TGA files unless libqtga.so is removed from the system. Reproducible: Always Steps to Reproduce: Try to open a TGA image in Kubuntu 12.10 with Okular. Actual Results: Okular throws an error window: "Could not open /tmp/logo.tga" Another error is in the Okular main window: "Unable to load document: Unable to read image data" Expected Results: Okular would open the image. I have the same problem with Gwenview. I suspect it is the fault of Qt's libqtga.so, because KDE's kimg_tga.so work reliably for both Okular and Gwenview. I'm reporting the bug in Okular since I believe it should try all the plugins registered for a given image format before giving up with an error.
Can you attach a tga file?
Created attachment 75307 [details] Test file Added a sample TGA file, as requested.
okular 0.15.70 opens this file
sorry, I have forgotten to check for qtga library existence. On my system, openSUSE 12.2, where libqtga.so is present, the attached file cannot be opened.
Which package provides libtga.so for you?
It's libqtgui4 (version 4.8.3) that provides libqtga.so. ~$ dpkg -S /usr/lib/x86_64-linux-gnu/qt4/plugins/imageformats/libqtga.so libqtgui4:amd64: /usr/lib/x86_64-linux-gnu/qt4/plugins/imageformats/libqtga.so ~$ dpkg --status libqtgui4:amd64 Package: libqtgui4 Status: install ok installed Priority: optional Section: libs Installed-Size: 12343 Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com> Architecture: amd64 Multi-Arch: same Source: qt4-x11 Version: 4:4.8.3+dfsg-0ubuntu3
Qt does not have a way to specify which plugin to use to use for loading a QImage so this is QImageReaders fault for not trying will all the plugins (Besides the tga plugin for not loading the image) I suggest you report this bug at https://bugreports.qt-project.org