开发者

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

开发者 https://www.devze.com 2023-02-08 16:59 出处:网络
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 & cro

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消