When I try to open a .tga in gwenview, all I get is a red X and the error "Failed to read metadata". Reproducible: Always Steps to Reproduce: 1. try to open a .tga file 2. observe that it does not work. error message: "failed to read metadata"
as of now (KDE 4.9.0) neither digikam nor gwenview nor limoo can handle TGA images. That is a grave lack of functionality for me since I work with TGA a lot in game content development.
What I see here, is that Qt 4.8.2 provides it's own plugin for TGA loading, that does not work. Can you please check if removing file "/usr/lib/qt4/plugins/imageformats/libqtga.so" helps?
nope, removing the qt tga plugin did not help.
Could you provide a link to a TGA file which does not open with KDE's plugin?
I attached two targa files that I just created in gimp. One is 512x512 with alpha channel, the other is 512x512 without alpha channel. both do not open in gwenview.
Created attachment 73588 [details] targa file without alpha channel
Created attachment 73589 [details] targa file with alpha channel
Both of them open fine in Kolourpaint and using a simple QImage test program, so the KDE image plugin works correctly. If unsure, use "strace" to check which plugin gets loaded.
hmm on my system, kolourpaint refuses to open those files, "unsupported format".
Created attachment 73590 [details] strace output from trying to open a TGA in kolourpaint Here's a strace of me trying to open a tga in kolourpaint.
> open("/usr/lib64/qt4/plugins/imageformats/libqtga.so", O_RDONLY) = 9 Remove that file. Then try again.
that did it. thanks! I'll file a bug against openSUSE qt now and close this here as wontfix :)