Page 1 of 1

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

Posted: 2007-01-19T14:04:24-07:00
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...

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

Posted: 2009-01-15T04:00:48-07:00
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.