Sign in to follow this  
fyhuang

How to save transparent images using ImageMagick???

Recommended Posts

fyhuang    253
Right now I'm trying to combine a series of images, 0001.png - 0016.png, into one big 4x4 file. Everything's combining fine except for one small detail - the source files have an alpha channel but the combined file does not. I've tried everything to get ImageMagick to save an alpha channel - this is my command line:
montage -channel RGBA -background "rgba( 0, 0, 0, 0 )" -depth 8 -type TrueColorMatte 0*.png -geometry 64x64 -tile 4x4 -channel RGBA -matte -transparent "rgb( 0, 0, 0 )" -type TrueColorMatte -depth 8 concat.png

But still, the image saves without an alpha channel. Can anyone help me with this? Thanks in advance!

Share this post


Link to post
Share on other sites
fyhuang    253
Never mind, you were supposed to use 'transparent' instead of 'rgba( 0, 0, 0, 0 )'. Counter-intuitive...

Cheers!

Share this post


Link to post
Share on other sites
Sign in to follow this