function filtersie_sharpen_effect in FiltersIE 7
Image effect callback; Sharpen an image resource.
Parameters
type $image: An image object returned by image_load().
type $data: An array of attributes to use when performing the sharpen effect with the following items:
- "sharpenlevel": An integer representing the desired sharpen level.
Return value
type TRUE on success. FALSE on failure to sharpen image.
See also
1 string reference to 'filtersie_sharpen_effect'
- filtersie_image_effect_info in ./
filtersie.module - Implements hook_image_effect_info.
File
- ./
filtersie.module, line 113 - Filters Image Effect (filtersie)
Code
function filtersie_sharpen_effect(&$image, $data) {
if (!filtersie_sharpen($image, $data['sharpenlevel'])) {
watchdog('filtersie', 'Filters Image Effects sharpen failed using the %toolkit toolkit on %path (%mimetype, %dimensions)', array(
'%toolkit' => $image->toolkit,
'%path' => $image->source,
'%mimetype' => $image->info['mime_type'],
'%dimensions' => $image->info['height'] . 'x' . $image->info['height'],
), WATCHDOG_ERROR);
return FALSE;
}
return TRUE;
}