You are here

function imagecache_subroutine_dimensions in ImageCache Actions 8

Same name and namespace in other branches
  1. 7 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 287
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);
}