GNOME Bugzilla – Bug 540969
TGA Loader
Last modified: 2008-10-30 20:14:17 UTC
GIMP 2.4.x load some tga-files without alpha-channel. For example: http://andru.2x4.ru/tmp/tux_stand.tga.tar.bz2 But gthumb and GIMP for Windows have no problems with it. PS: Sorry for my bad English.
Created attachment 113861 [details] TGA attached Let's attach the TGA file here to make trying this a bit more easy.
I do not get an alpha channel in GIMP on Windows for this image. Plus, identify does not report an alpha channel, either.
gthumb and eog do display an alpha channel though, so there is clearly a bug somewhere.
The image claims that the number of alpha bits is 0, so the image is clearly broken. Which software created that image? GThumb and EOG both use gdk-pixbuf loaders to open the image, and that loader asumes that the image has alpha if its bpp is 16 or 32.
Duplicate of bug #65534?
No that bug was about broken images where alphaBits == bpp, this one is about images where alphaBits == 0. Why do people use TGA anyway?
@Michael Natterer >>Which software created that image? This image was converted from PNG to TGA by XnView(version 1.93.4 (mar 27 2008)) >>Why do people use TGA anyway? TGA format is easy to use in game engine because of simple loading code :)
Please ask the XnView developers to fix their saving code then.