I'm working on a script that draws a rectangle over a wallpaper image so that I can overlay some text with another utility. The fill color is supplied by a variable, so it could be any color with or without alpha. That's pretty easy:
Code: Select all
convert infile.png -draw "fill #000000E6 rectangle 25,1050 325,970" outfile.png
(this is only a demonstration with a transparent terminal over solid color on left and actual wallpaper on right)
After looking through the examples, I'm unsure if I can actually do this the way I'm expecting to. Since the rectangle may have alpha, layering the first rectangle over a blurred rectangle would affect the overall color\transparency of the rectangle, right?
And, of course, I want to do this in one shot without intermediate files if possible. Any suggestions?