-polaroid, changing blue'ish background

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
paultaylor

-polaroid, changing blue'ish background

Post 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
Last edited by paultaylor on 2007-07-28T10:27:59-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -polaroid, changing blue'ish background

Post 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.
paultaylor

Re: -polaroid, changing blue'ish background

Post 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
Post Reply