Determines the dimensions of an image.
$variables: An associative array containing:
array Dimensions to be modified - an array with components width and height, in pixels.
function picture_get_image_dimensions($variables) {
// Determine the dimensions of the styled image.
$dimensions = array(
'width' => $variables['width'],
'height' => $variables['height'],
);
image_style_transform_dimensions($variables['style_name'], $dimensions);
return $dimensions;
}