Transparency issue on Polaroid
Posted: 2011-03-15T19:12:44-07:00
Hi,
I've been tweaking this script for many days but I'm still strugling at getting transparency around my Polaroid effect.
Take a look at the resulting image to better understand: http://oi52.tinypic.com/8vq7bl.jpg
See code below:
convert baby.jpg -alpha set -background transparent -bordercolor snow -polaroid 6 baby_polaroid.png
convert -page +225+225 baby_polaroid.png ^
-page +840+705 baby_polaroid.png ^
+page ^
-alpha set -virtual-pixel transparent ^
-channel A -blur 0x10 -level 50,100% +channel ^
back.jpg -insert 0 ^
-background transparent -flatten overlap_canvas.jpg
Thanks,
Harold
I've been tweaking this script for many days but I'm still strugling at getting transparency around my Polaroid effect.
Take a look at the resulting image to better understand: http://oi52.tinypic.com/8vq7bl.jpg
See code below:
convert baby.jpg -alpha set -background transparent -bordercolor snow -polaroid 6 baby_polaroid.png
convert -page +225+225 baby_polaroid.png ^
-page +840+705 baby_polaroid.png ^
+page ^
-alpha set -virtual-pixel transparent ^
-channel A -blur 0x10 -level 50,100% +channel ^
back.jpg -insert 0 ^
-background transparent -flatten overlap_canvas.jpg
Thanks,
Harold