Page 1 of 1

blur effect will not work with -shadow option

Posted: 2008-09-25T18:51:55-07:00
by leonardo_999
Hello I'm new to IM.

i want to figure out the -shadow option. it work's but not as expected. the shadow which created by IM is a solid and not blur (i hope this is correct english :-)).

here is the command i put into my terminal:

Code: Select all

convert /opt/local/apache2/htdocs/photowebshop/webshops/dummy/upload/DSC_4974.jpg \( +clone  -background navy  -shadow 80x3+5+5 \) +swap -background none   -layers merge  +repage /opt/local/apache2/htdocs/photowebshop/webshops/dummy/upload/DSC_4974s.jpg
i put the result to this link
http://www.photo-charly.at/thomas/DSC_4974s.jpg

i expected an result like the image of the first example in http://www.imagemagick.org/Usage/convolve/ under capter "Generating Shadows".



thanks for help

thomas

Re: blur effect will not work with -shadow option

Posted: 2008-09-25T19:27:44-07:00
by fmw42
Not sure I can help, but -layers merge requires IM v6.3.6-2. What is your IM version?

convert -list configure

Look for the line: LIB_VERSION_NUMBER 6,4,3,9

Re: blur effect will not work with -shadow option

Posted: 2008-09-26T00:07:55-07:00
by anthony
The shadow generated is semi-transparent. JPG does not handle transparency.
You need to 'flatten' your image first to a background of a different color before saving to JPEG, or use PNG images instead.
JPEG transparency - NOT

Re: blur effect will not work with -shadow option

Posted: 2008-09-26T02:31:29-07:00
by leonardo_999
thanks for replies,

with PNG files i get the expectet result.