Page 1 of 1

Stencil/Spray Paint Effect

Posted: 2008-11-02T15:52:27-07:00
by StephenP
Hi all,
Just wondering if there's any sort of operator that can take a photo, then change it to appear as though it was done in spray paint.
Example -
http://www.caption.it/create/spraypaint.php

Thanks,
Stephen

Re: Stencil/Spray Paint Effect

Posted: 2008-11-02T16:37:12-07:00
by anthony
Yes. there are two aspects to this. First you need to get the edges of the photo submitted, with the appropriate details. That can be tricky.

Once you have that i would then use a Random Dither
http://www.imagemagick.org/Usage/quanti ... -threshold
to create 'clumps' before blurring and overlaying it onto the background.

It can be done, but the hard part would be to create that line drawing.

Anyone like to give this a go?

Re: Stencil/Spray Paint Effect

Posted: 2008-11-02T16:51:59-07:00
by fmw42
StephenP wrote:Hi all,
Just wondering if there's any sort of operator that can take a photo, then change it to appear as though it was done in spray paint.
Example -
http://www.caption.it/create/spraypaint.php

Thanks,
Stephen

Perhaps something like this:

Bricks:
Image

Lena:
Image

Composite:
convert bricks_tilable2.jpg \( -size 256x256 xc:mediumblue \) \
\( lena.jpg -colorspace gray -negate \) -compose multiply -composite \
lena_bricks.jpg

Image


OR

Lena:
Image

Composite:
convert bricks_tilable2.jpg \( -size 256x256 xc:mediumblue \) \
\( lena2.jpg -resize 256x256 -colorspace gray -negate \) -compose multiply -composite \
lena_bricks4.jpg

Image

OR

Lena:
Image

Composite:
convert bricks_tilable2.jpg \( -size 256x256 xc:mediumblue \) \
\( lena2.jpg -colorspace gray -negate -background black -gravity center -extent 256x256 \) -compose multiply -composite \
lena_bricks3.jpg

Image

OR for more color, remove the -compose multiply

Lena:
Image

Composite:
convert bricks_tilable2.jpg \( -size 256x256 xc:mediumblue \) \
\( lena.jpg -colorspace gray -negate \) -composite \
lena_bricks.jpg

Image

OR with slightly less color using xc:navy as a better compromise

Composite:
convert bricks_tilable2.jpg \( -size 256x256 xc:navy \) \
\( lena.jpg -colorspace gray -negate \) -composite \
lena_bricks.jpg

Image