You are here

function epsacrop_crop_dimensions in EPSA Crop - Image Cropping 7.2

A wrapper around image_resize_dimensions.

@access public

Parameters

array $dimensions:

array $data:

Return value

void

1 string reference to 'epsacrop_crop_dimensions'
epsacrop_image_effect_info in ./epsacrop.module
Implements hook_image_effect_info.

File

./epsacrop.module, line 292
The main file of module

Code

function epsacrop_crop_dimensions(array &$dimensions, array $data) {
  if (!$data['height']) {
    $data['height'] = NULL;
  }
  if (!$data['width']) {
    $data['width'] = NULL;
  }
  image_resize_dimensions($dimensions, $data);
}