Thank you. The command I used, essentially yours, which works is
convert -size 128x128 xc:#231F20 mask.gif -alpha Off -compose CopyOpacity -composite c.png
This assumes mask.gif is a 128x128 greyscale image. Not sure if 'alpha Off' is actually necessary, but the result is a shape on a transparent ...
Search found 3 matches
- 2013-07-14T09:31:26-07:00
- Forum: Users
- Topic: Composite images with a mask
- Replies: 5
- Views: 5232
- 2013-07-11T02:28:24-07:00
- Forum: Users
- Topic: Composite images with a mask
- Replies: 5
- Views: 5232
Re: Composite images with a mask
Thank you for your reply. I get the following errors from the command given:
convert: unable to open image `canvas:none': @ error/blob.c/OpenBlob/2489.
convert: unable to open image `canvas:#231F20': @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `output.png' @ error/convert.c ...
convert: unable to open image `canvas:none': @ error/blob.c/OpenBlob/2489.
convert: unable to open image `canvas:#231F20': @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `output.png' @ error/convert.c ...
- 2013-07-10T09:17:00-07:00
- Forum: Users
- Topic: Composite images with a mask
- Replies: 5
- Views: 5232
Composite images with a mask
Hello,
I'm trying to create a variation of the command that can composite an image over a background, through a mask, as described here:
http://www.imagemagick.org/Usage/compose/#mask
Instead of use two images saved on disc as the source images, I would like to create the source images in memory ...
I'm trying to create a variation of the command that can composite an image over a background, through a mask, as described here:
http://www.imagemagick.org/Usage/compose/#mask
Instead of use two images saved on disc as the source images, I would like to create the source images in memory ...