Load TGA -> Save TGA = Alpha Lost in Magick++. Why?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bunkai
Posts: 22
Joined: 2007-01-15T07:37:59-07:00

Load TGA -> Save TGA = Alpha Lost in Magick++. Why?

Post by Bunkai »

Hello,

While doing image processing, I found out, that the alpha channel gets lost somewhere..

I did the simplest possible experiment. I loaded the TGA image, which contained Alpha channel, and simply saved it immediatelly into the same TGA format. Although RGB was saved, Alpha layer was not present in output images. I checked the output image in Adobe Photoshop.

I study available resources, but can not find any solution.

Could I ask for any advice, please, how to preserve alpha channel, in Magick++?

Thank you and with regards...
Greg

Re: Load TGA -> Save TGA = Alpha Lost in Magick++. Why?

Post by Greg »

Does 'identify -verbose' show the source image has alpha?

I've found that IM sometimes has trouble detecting the alpha channel of certain tga files.
Still trying to determine if IM is at fault, or the program that generated the image.
Details of my bug report are here:

viewtopic.php?f=3&t=12912

..which includes a suggested tweak to coders/tga.c that /might/ help you.
Post Reply