how to define a background fill color when resizing and cropping with imagecache in drupal?

2k views Asked by At

Is there any way to apply some filters in imagecache to fill the background color with a html code preset #FFFFFF for example? , it's just impossible to set that up since scale & crop doesn't have no option for that...rotate however has it.. Can anyone help me please to set that up?

2

There are 2 answers

0
jhedstrom On

You can do this with ImageCache Actions, which supports both GD and ImageMagick.

1
alxp On

This is more of a job for an image manipulation program like ImageMagick. You can use the Imagemagick Raw Actions module to invoke this behaviour within ImageCache. I'm not an ImageMagick expert but you can specify a fill colour and use it with the draw command.