Page 1 of 1

Advanced drop shadow effect

Posted: 2010-08-19T15:12:37-07:00
by mazelx
Hi there,

I've been struggling to find a solution to make a drop shadow just like this : http://www.flickr.com/photos/s0ulsurfing/4800804307/ with ImageMagick.

Basicly the effect is a combination of 2 drop shadows, bottom right and top left, with different intensity.

I'm ok making a single drop shadow (with a tiny border) : convert <input.jpg> -bordercolor "#4F4F4F" -border 1x1 \( +clone -background gray -shadow 60x10+10+10 \) +swap -background white -layers merge +repage <output.jpg>, but how can I achieve to get such result ??

Many thanks ;)

Re: Advanced drop shadow effect

Posted: 2010-08-19T15:50:11-07:00
by fmw42
try this and then adjust the parameters:


convert <image.jpg> \
\( -clone 0 -background gray -shadow 80x3+10+10 \) \
\( -clone 0 -background gray -shadow 80x3-5-5 \) \
-reverse -background none -layers merge +repage shadow.png


see http://www.imagemagick.org/script/comma ... php#shadow and http://www.imagemagick.org/Usage/blur/#shadow

Re: Advanced drop shadow effect

Posted: 2010-08-20T14:34:37-07:00
by mazelx
Brilliant! That's great

I tried a command very similar before, but I could'nt get it work like the way I wanted....


thanks a lot!