Broken support for writing TGA files with an alpha channel.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
senarvi

Broken support for writing TGA files with an alpha channel.

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
senarvi

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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?
senarvi

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

Post 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.
Post Reply