• Advertisement
Sign in to follow this  

How to save transparent images using ImageMagick???

This topic is 4644 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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  

  • Advertisement