Page 1 of 1

Broken support for writing TGA files with an alpha channel.

Posted: 2010-08-11T04:50:20-07:00
by senarvi
I need to convert e.g. PNG files that have transparent pixels ("key color") to TGA files with an alpha channel. It worked with earlier versions of convert, but at some point this functionality has been broken. I checked with GIMP and it looks like convert makes the alpha channel but it's empty even though the original PNG file has transparent pixels.

I have a Debian system that updated ImageMagick to version 6.3.7, where the feature is broken. I also have a new Fedora installation with ImageMagick 6.6.0, where the feature is still broken.

I tried to find out at which version the functionality exactly broke, but regardless of many attempts I'm unable to compile the old version, or install them from Debian repository. However, I'm certain that it was still working on version 6.2.4, and I'm pretty sure it was still working in earlier 6.3 versions.

Re: Broken support for writing TGA files with an alpha chann

Posted: 2010-08-11T07:52:45-07:00
by magick
We tried converting an RGBA image to TGA with ImageMagick 6.6.3-4, the current release and the image appeared fine when displayed with Gimp. You may need to upgrade or the problem could be specific to your image. Post a URL to it if you want us to download it and try to reproduce the problem.

Re: Broken support for writing TGA files with an alpha chann

Posted: 2010-08-30T09:22:43-07:00
by senarvi
Here's the image that I've been using: http://users.marjaniemi.com/seppo/parrot.png

Hope this helps you to catch the bug.

Re: Broken support for writing TGA files with an alpha chann

Posted: 2010-08-30T10:41:58-07:00
by fmw42
senarvi wrote:Here's the image that I've been using: http://users.marjaniemi.com/seppo/parrot.png

Hope this helps you to catch the bug.

This image converts just fine to tga on my Mac OSX Tiger IM 6.6.3.9 Q16

convert parrot.png parrot.tga

The alpha channel remains in tact and the image looks just like the png version.

Can you upgrade?

Re: Broken support for writing TGA files with an alpha chann

Posted: 2010-08-31T01:57:10-07:00
by senarvi
fmw42 wrote:This image converts just fine to tga on my Mac OSX Tiger IM 6.6.3.9 Q16
You're right. Just when I complained about it, it has been fixed. I compiled 6.6.3-9 and it seems to be working.