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.
Broken support for writing TGA files with an alpha channel.
Re: Broken support for writing TGA files with an alpha chann
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
Here's the image that I've been using: http://users.marjaniemi.com/seppo/parrot.png
Hope this helps you to catch the bug.
Hope this helps you to catch the bug.
- 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
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
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.fmw42 wrote:This image converts just fine to tga on my Mac OSX Tiger IM 6.6.3.9 Q16