After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540969 - TGA Loader
TGA Loader
Status: RESOLVED NOTGNOME
Product: GIMP
Classification: Other
Component: General
2.4.x
Other other
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-06-30 17:56 UTC by Andrey
Modified: 2008-10-30 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
TGA attached (160.02 KB, application/octet-stream)
2008-07-02 15:13 UTC, Michael Schumacher
Details

Description Andrey 2008-06-30 17:56:42 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.
Comment 1 Michael Schumacher 2008-07-02 15:13:18 UTC
Created attachment 113861 [details]
TGA attached

Let's attach the TGA file here to make trying this a bit more easy.
Comment 2 Michael Schumacher 2008-07-02 15:19:37 UTC
I do not get an alpha channel in GIMP on Windows for this image. Plus, identify does not report an alpha channel, either.
Comment 3 Michael Natterer 2008-07-02 15:42:50 UTC
gthumb and eog do display an alpha channel though,
so there is clearly a bug somewhere.

Comment 4 Michael Natterer 2008-07-02 18:00:36 UTC
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.
Comment 5 Michael Schumacher 2008-07-02 18:21:08 UTC
Duplicate of bug #65534?
Comment 6 Michael Natterer 2008-07-02 18:23:20 UTC
No that bug was about broken images where alphaBits == bpp, this
one is about images where alphaBits == 0.

Why do people use TGA anyway?
Comment 7 Andrey 2008-07-02 19:01:21 UTC
@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 :)
Comment 8 Sven Neumann 2008-07-02 21:34:04 UTC
Please ask the XnView developers to fix their saving code then.