function imagecache_subroutine_dimensions in ImageCache Actions 7
Same name and namespace in other branches
- 8 customactions/imagecache_customactions.module \imagecache_subroutine_dimensions()
Image dimensions callback for the subroutine effect.
Parameters
array $dimensions: Dimensions to be modified - an array with components width and height, in pixels.
array $data: An array with the effect options.
1 string reference to 'imagecache_subroutine_dimensions'
- imagecache_customactions_image_effect_info in customactions/
imagecache_customactions.module - Implements hook_image_effect_info().
File
- customactions/
imagecache_customactions.module, line 293 - Allows advanced users to code their own PHP image manipulation routines as part of image style processing.
Code
function imagecache_subroutine_dimensions(array &$dimensions, array $data) {
// Let the subroutine transform the dimensions.
image_style_transform_dimensions($data['subroutine_presetname'], $dimensions);
}