Page 1 of 1

Polaroid - Impossible to save with white background as jpg

Posted: 2009-01-16T11:59:54-07:00
by sabater_wb
Hi guys.
I'm trying to run this code:
"convert -caption "Faerie Dragon" dragon.jpg -gravity center -background black +polaroid anno_polaroid.png"

The problem, is that when I save it as jpg, its background is saved in black.
I tried even save it as png, and after convert it to jpg, but the result is the same.

How can I save it as jpg and with a white background?

thank you.

Re: Polaroid - Impossible to save with white background as jpg

Posted: 2009-01-20T18:18:16-07:00
by anthony
Polaroid generates a transparent background, JPEG can not save transparency, so it comes out black.

For JPEG -flatten the image first!!!!!

See IM Examples, Common File Formats, JPEG
JPEG transparency - NOT
http://www.imagemagick.org/Usage/formats/#jpg_trans