'paste' an image over another + transparent

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
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

'paste' an image over another + transparent

Post by myspacee »

Hello,
i must script a tool that takes some white symbols over an image:
Image

I've post symbol and image here:
http://static.repubblica.it/laprovincia ... xx/fog.bmp
http://static.repubblica.it/laprovincia ... x/back.bmp

How i can join these 2 image, convert 'green' color in transparent, and obtain final image ?
(arrow show my final wish; green is converted in trasparent color)

thank you for any help,
m.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 'paste' an image over another + transparent

Post by snibgo »

Windows syntax:

Code: Select all

convert ^
  back.bmp ^
  ( fog.bmp +transparent White -resize 100x100 ) ^
  -geometry +150+230 ^
  -composite ^
  bf.bmp
Adjust resize and geometry as required.
snibgo's IM pages: im.snibgo.com
myspacee
Posts: 153
Joined: 2007-06-14T02:09:35-07:00

Re: 'paste' an image over another + transparent

Post by myspacee »

thank you!
m.
Post Reply