Curved Drop Shadow

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mrjbar
Posts: 2
Joined: 2012-05-04T22:42:01-07:00
Authentication code: 13

Curved Drop Shadow

Post by mrjbar »

Hello

I'm trying to create a curved drop shadow effect with a white/transparent background similair to the photo below.

Image

I was able to generate the following picture with this command:
convert thumb.png \( +clone -background gray -shadow 80x2+0+1 -wave -20x480 \) +swap -background white -layers merge +repage shadow.png

Image


I can't figure out how to swap out the gray background in the picture. I woud like the background to be white/transparent.



Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Curved Drop Shadow

Post by fmw42 »

try this


convert thumb.png \
\( +clone -background gray -shadow 80x2+0+1 -background none -wave -20x480 \) \
+swap -background none -layers merge +repage shadow.png
mrjbar
Posts: 2
Joined: 2012-05-04T22:42:01-07:00
Authentication code: 13

Re: Curved Drop Shadow

Post by mrjbar »

Yup, that did it. Thank you!!!
Post Reply