SUMMARY TGA (TARGA) files with RLE compression cannot be viewed. STEPS TO REPRODUCE 1. Open any file in GIMP. 2. Chose "Export as…" in the "File" menu. 3. Input a name with the ".tga" extension and confirm. 4. In the next window, keep the "RLE compression" box checked (it probably is by default) and confirm. 5. Open the new TGA file in Gwenview. OBSERVED RESULT > Loading ‘file.tga’ failed > Loading image failed. EXPECTED RESULT The image (usually a texture for a game) should be shown. SOFTWARE/OS VERSIONS Gwenview version: 24.02.2 KDE Plasma Version: 6.0.4 ADDITIONAL INFORMATION The same applies to the thumbnail mechanism of Dolphin and the KDE file picker. No thumbnail is generated for a TGA file if it's compressed with the RLE compression.
I confirm the error. Gwenview does not open a .tga file if the information in it is in one channel, but it opens other .tga files on three channels of RGB or RGBA. Approximate time of error occurrence: update to the sixth version of Plasma. The error was tested on three OS: pure Arch Linux, Endeavor, Manjaro. Current OS: Operating System: ArcoLinux KDE Plasma Version: 6.1.0 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 Kernel Version: 6.6.35-2-lts (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics Memory: 27.3 ГиБ of RAM Graphics Processor: AMD Radeon Graphics
I think it's the Qt TGA plugin's fault. Since Qt 6, I've encountered a problem: if you have multiple plugins opening the same format, only one is actually used. This problem wasn't present with Qt 5. For now, I've solved it by manually deleting the Qt plugin and leaving only the KDE one :) I haven't checked whether there's a bug on the Qt bug tracker about this or whether it's a deliberate feature.
Gwenview uses the outdated libqtga.so (from qt6-imageformats), which fails to handle TGA files with 1–2 channels (e.g., R/RG) commonly used in game development for masks. The alternative implementation kimg_tga.so works reliably, but Gwenview may switch between libraries unpredictably. Reproducibility: Issue occurs when opening TGA files with only 1 or 2 channels (R/RG). Gwenview alternates between libqtga.so and kimg_tga.so, leading to unstable behavior. Expected Behavior: Gwenview should consistently open TGA files of any channel configuration (including R/RG) using the stable kimg_tga.so. Actual Behavior: Unpredictable crashes or failures when libqtga.so is used. Deleting libqtga.so resolves the issue for Gwenview but causes CMake errors and potential conflicts with other applications relying on this library. Additional Notes: Ensure Gwenview defaults to using kimg_tga.so. Related packages: Gwenview, qt6-imageformats, kimg_tga (KDE). Priority: High (blocks Gwenview's stability and may affect system-wide dependencies via CMake errors).
(In reply to mirthost from comment #3) > Gwenview uses the outdated libqtga.so (from qt6-imageformats), which fails > to handle TGA files with 1–2 channels (e.g., R/RG) commonly used in game > development for masks. The alternative implementation kimg_tga.so works > reliably, but Gwenview may switch between libraries unpredictably. The Qt libraries decide which Qt plugin to use. This is outside of GWenView's control. You need to file a bug report here: https://bugreports.qt.io/projects/QTBUG/issues/ If you do, please post the link here so we can track it.
*** This bug has been marked as a duplicate of bug 456757 ***