Transparency issue on Polaroid

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
haroldelms
Posts: 1
Joined: 2011-03-15T19:02:47-07:00
Authentication code: 8675308

Transparency issue on Polaroid

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Transparency issue on Polaroid

Post by fmw42 »

JPG does not allow transparency. Use GIF or PNG for your output.
Post Reply