Semi-transparent background
Posted: 2018-06-15T22:17:57-07:00
Hi all !
I'm using the following wood texture background and code to generate the image below.
I was wondering how to make the white rounded square background Semi-transparent so a bit of the wood texture shows through it?
I have the text fully transparent and would also like the white background to be about 50% transparent if possible.
Thank you for your help!
Result:
I'm using the following wood texture background and code to generate the image below.
I was wondering how to make the white rounded square background Semi-transparent so a bit of the wood texture shows through it?
I have the text fully transparent and would also like the white background to be about 50% transparent if possible.
Thank you for your help!
Code: Select all
convert \( -size 450x450 xc:white \) \
\( +clone -alpha extract \
-draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
\( +clone -flip \) -compose Multiply -composite \
\( +clone -flop \) -compose Multiply -composite \
\) -alpha off -compose CopyOpacity -composite \
\( -size 400x400 -background none -fill white -gravity center \
-font arial label:"let's\nbe\nHAPPY" \) \
-gravity center -compose dstout -composite -alpha on \
canvas.jpg +swap -compose over -composite sample.png
Result: