3d Shadows using Affine Shears
Posted: 2010-02-20T05:47:17-07:00
Hello there.
I'm totally new to ImageMagick and just want to create one effect and not totally learn all the mathematics behind.
So I would just ask you for help.
I want to create a shadow dynamicly via command line, like in this example:

As you see, it's just a very small on the left bottom.
Pretty much like in this example (http://www.imagemagick.org/Usage/distorts/#shadow3d), but way smaller and maybe softer:
But I don't really get through the coefficients of Affine Projection.
So I'd be really pleased if someone could help me out with this.
Thx
I'm totally new to ImageMagick and just want to create one effect and not totally learn all the mathematics behind.
So I would just ask you for help.
I want to create a shadow dynamicly via command line, like in this example:

As you see, it's just a very small on the left bottom.
Pretty much like in this example (http://www.imagemagick.org/Usage/distorts/#shadow3d), but way smaller and maybe softer:
Code: Select all
convert standing_shape.png -flip +distort SRT '0,0 1,-1 0' \
\( +clone -background Black -shadow 60x5+0+0 \
-virtual-pixel Transparent \
+distort Affine '0,0 0,0 100,0 100,0 0,100 100,50' \
\) +swap -background white -layers merge \
-fuzz 2% -trim +repage standing_shadow.jpg
So I'd be really pleased if someone could help me out with this.
Thx