Page 1 of 1

-polaroid, changing blue'ish background

Posted: 2007-07-28T10:04:26-07:00
by paultaylor
Hi all,

Is there any way to change the blue'ish colour of the polaroid option ?

I have checked the original authors script through RMagick which has the option available but can't see anyway to do this via an option on the command line in ImageMagick?

I managed to hack the fx.c source to change the colour manualy, lines 2899 and 2922. Is this the only way ? if so would it be possible in the future to add this to a wish list to the -polaroid option, ie. polaroid [angle] [bordercolour] ?

Thanks in advance,
Paul

PS. Imagemagick rocks

Re: -polaroid, changing blue'ish background

Posted: 2007-07-28T10:17:16-07:00
by magick
In order to investigate we need a URL to a sample image and the command line we can use to reproduce the problem.

Re: -polaroid, changing blue'ish background

Posted: 2007-07-28T10:34:03-07:00
by paultaylor
Hi there,

Thanks for the quick reply.
magick wrote:In order to investigate we need a URL to a sample image and the command line we can use to reproduce the problem.
Any of the examples on the imagemagick site :
http://www.imagemagick.org/Usage/transform/#polaroid
the -background option only changes the colour of the shadow, not the colour used to "frame" the polaroid.

They all have the background preset. On one of my monitors it looks ok, the other its far too dark blue. The RMagick script example shows that the background can be set at the start of the script :
http://rmagick.rubyforge.org/Polaroid/polaroid.html
but 'convert' seems to have it hard coded.

PS. Sorry but I wasn't exprecting such a quick reply and have edited my original post after your reply.

Regards,
Paul