Closed (fixed)
Project:
Image
Version:
4.7.x-1.x-dev
Component:
imagemagick toolkit
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2006 at 21:52 UTC
Updated:
30 Aug 2007 at 20:06 UTC
Hi there!
I'm a complete Drupal neophyte, but I am very comfortable in Standards-based (X)HTML and CSS and quite comfortable in PHP.
I'm using this module in conjunction with image exact sizes and img_assist. What I want to do is have those lovely thumbnails from Image Exact Sizes generate in black-and-white.
I tried adding the following PHP to the image module's "image.imagemagick.inc":
/**
* Convert an image to black and white
*/
function image_imagemagick_monochrome($source, $dest) {
$filter = ' -monochrome ' ;
return _image_imagemagick_convert($source, $dest, $filter);
}
The idea is to be able to add that flag to the thumbnail creation script from Exact Sizes, as per the ImageMagick documentation. What I'm not sure of is how to make this happen from image_exact.module...
Thoughts?
Comments
Comment #1
drewish commentedthis is an option in the image_im_advanced.module that's now in HEAD.