Search found 6 matches
- 2019-02-17T21:10:18-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Re: Apply shadow to rectangle with alpha
This is a guess at what you want. That's pretty close. This is what I want... http://i.imgur.com/MsfuCrK.png There are really a lot of variable going in to this it's hard to abstract something that makes sense outside of the script. My sample code works now, so I guess I just need to translate to ...
- 2019-02-17T20:44:54-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Re: Apply shadow to rectangle with alpha
Post your infile.png and outfile.png so we can help your compact your code. When I try your code with an arbitrary input, the output just has a black rectangle with a slight shading around it inside the original image. I do not understand your two images that you originally posted. Please clarify ...
- 2019-02-17T15:28:02-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Re: Apply shadow to rectangle with alpha
For v7, I suggest you use "magick", not "convert" or "composite" You could do all the work in a single "magick" command, with no intermediate files. That's what I said I wanted to do from the start. I was only following your extremely vague suggestions. This is my first time working with IM, so ...
- 2019-02-17T14:12:13-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Re: Apply shadow to rectangle with alpha
I was finally able to piece this together. convert -size 300x80 xc:\#000000e6 -fill none rectangle.png convert rectangle.png \ \( -clone 0 -background \#000000e6 -shadow 100x5+0+0 \) +swap \ -background none -layers merge +repage shadow.png composite -compose Dst_Out -gravity center \ rectangle.png ...
- 2019-02-16T09:34:54-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Re: Apply shadow to rectangle with alpha
I still don't understand how to even get the shadow to\under\around the rectangle in the first place. Every attempt ends up with the first rectangle being drawn on the wallpaper, and then the entire image gets shadowed. convert infile.png \ \( -draw "fill #000000E6 rectangle 25,1050 325,970 ...
- 2019-02-16T05:36:56-07:00
- Forum: Users
- Topic: Apply shadow to rectangle with alpha
- Replies: 10
- Views: 5132
Apply shadow to rectangle with alpha
Version: ImageMagick 7.0.8-27 Q16 x86_64 2019-02-10 Platform: Linux API: Shell\Bash 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 ...