function hires_images_dimensions in Hi-Res Images 7
Image dimensions callback; Hi-Res.
Parameters
$dimensions: Dimensions to be modified - an array with components width and height, in pixels.
$data: An array of attributes to use when performing the effect.
1 string reference to 'hires_images_dimensions'
- hires_images_image_effect_info in ./
hires_images.module - Implements hook_image_effect_info().
File
- ./
hires_images.module, line 47 - Main module file for Hi-Res Images.
Code
function hires_images_dimensions(array &$dimensions, array $data) {
if (isset($dimensions['width']) && isset($dimensions['height'])) {
$dimensions['width'] /= 2;
$dimensions['height'] /= 2;
}
}