Hi,
I searched the forum and did not find the answer.
Now, I make a image like this by 3 steps
1. text mask
convert -size 300x60 -background none -fill black \
-font './impact.TTF' -pointsize 72 label:'This is a Mask' mask1.png
2. ellipse
convert -size 300x60 xc:skyblue -fill red -stroke black -draw "ellipse 150,30 100,30 0,360" draw_ellipse.png
3. composite
composite -compose Dst_In -gravity center mask1.png draw_ellipse.png compose_mask.png
How can I do this by one command?
Thanks
how to composite them in one command?
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: how to composite them in one command?
This will do it:
Pete
Code: Select all
convert -compose Dst_In -gravity center -size 300x60 xc:skyblue \
-fill red -stroke black -draw "ellipse 150,30 100,30 0,360" \
( -size 300x60 -background none -fill black -font './impact.TTF' \
-pointsize 72 label:'This is a Mask' ) -composite compose_mask.png