Help me Mask 2 images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vutuyen
Posts: 2
Joined: 2013-09-16T01:13:39-07:00
Authentication code: 6789

Help me Mask 2 images

Post by vutuyen »

Hi everyone
Im building the Seven Seas game, i have two image
Image
and
Image

how can i use the ImageMagick to make the transparent image from 2 images above.

the black color willl be transparent.

thanks all.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Help me Mask 2 images

Post by snibgo »

If you want the second image to be a transparency mask for the first:

Code: Select all

convert skull.gif skullmask.gif -compose CopyOpacity -composite ssSkull.png
snibgo's IM pages: im.snibgo.com
vutuyen
Posts: 2
Joined: 2013-09-16T01:13:39-07:00
Authentication code: 6789

Re: Help me Mask 2 images

Post by vutuyen »

great!!

i got it

thank you :D
Post Reply