Combine RGB image and 8-bit alpha mask into a single .png file with ImageMagick

convert in_rgb.jpg in_mask.jpg -compose copy-opacity -composite out_rgba.png 

Leave a Reply