Page 1 of 1

possible bug converting to tga IM 6.8.8.1 Q16 Mac OSX

Posted: 2014-01-01T11:25:12-07:00
by fmw42
This is a follow up from viewtopic.php?f=1&t=24719


The following conversion produces a 24-bit color result rather than 8-bit color and 1-bit transparency

# create test 32-bit color png
convert rose: -fuzz 25% -transparent red -channel a -blur 0x1 +channel -depth 8 rose_tmp.png

Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit


convert rose_tmp.png -type palettealpha rose_tmp2.tga

Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit


It ends up 24-bit color and no alpha.

Am I doing something incorrectly?


This is a work around that does work.

convert rose_tmp.png PNG8:- | convert - rose_tmp.tga

Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit

Re: possible bug converting to tga IM 6.8.8.1 Q16 Mac OSX

Posted: 2014-01-01T12:47:13-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-2 Beta, available by sometime tomorrow. Thanks.

Re: possible bug converting to tga IM 6.8.8.1 Q16 Mac OSX

Posted: 2014-01-01T12:59:27-07:00
by fmw42
Thanks.