how to define a background fill color when resizing and cropping with imagecache in drupal?
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开发者_JS百科 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?
You can do this with ImageCache Actions, which supports both GD and ImageMagick.
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.
精彩评论