possible bug converting to tga IM 6.8.8.1 Q16 Mac OSX

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

possible bug converting to tga IM 6.8.8.1 Q16 Mac OSX

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

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

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

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

Post by fmw42 »

Thanks.
Post Reply