Bug 403935 - Unable to view TARGA image
Summary: Unable to view TARGA image
Status: RESOLVED DOWNSTREAM
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 18.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-04 21:26 UTC by gbr
Modified: 2019-02-06 03:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
CS:GO tga screenshot generated by Steam (2.25 MB, image/x-tga)
2019-02-04 21:26 UTC, gbr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gbr 2019-02-04 21:26:30 UTC
Created attachment 117832 [details]
CS:GO tga screenshot generated by Steam

SUMMARY
I'm trying to open this TGA image -- it's an uncompressed screenshot of the game Counter-Strike: GO, and it was generated by Steam --, but Gwenview is unable to.

STEPS TO REPRODUCE
1. Try to open the image i've attached with gwenview using the command line
2. Image won't load

OBSERVED RESULT
Terminal shows me this:

QImageReader::read() using format hint "tga" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 18 in a call to canRead()! Rewinding.
Image format is actually "ico" not "tga"
QImageReader::read() using format hint "tga" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 18 in a call to canRead()! Rewinding.
Image format is actually "ico" not "tga"

Renaming its extension to .ico, gives me this:

QImageReader::read() using format hint "ico" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 22 in a call to canRead()! Rewinding.
Image format is actually "ico" not "ico"
QImageReader::read() using format hint "tga" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 18 in a call to canRead()! Rewinding.
Image format is actually "ico" not "tga"


EXPECTED RESULT
Image loads without errors


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 4.20.6
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
I have tried some different targa images from the internet [1], but upon opening them I got the same errors

[1] http://netghost.narod.ru/gff/sample/images/tga/index.htm
Comment 1 Nate Graham 2019-02-05 20:25:39 UTC
Weird, works for me with Gwenview 18.12.1 and Qt 5.12 on Manjaro, basically the same setup. I get no console warnings or errors whatsoever. Seems like there's something wonky with your system. I would recommend asking in an Arch-specific focum of your choosing.
Comment 2 gbr 2019-02-06 02:55:21 UTC
You're right. I needed this package called kimageformats. Now they open just fine. It's just that kimageformats is an optional package and I didn't even thought about installing optional packages. Sorry for the noise!
Comment 3 Nate Graham 2019-02-06 03:14:31 UTC
Thanks for confirming! :)