Page 1 of 1

Transparency issue on Polaroid

Posted: 2011-03-15T19:12:44-07:00
by haroldelms
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

Re: Transparency issue on Polaroid

Posted: 2011-03-15T20:45:16-07:00
by fmw42
JPG does not allow transparency. Use GIF or PNG for your output.