function iek_image_padding in Image effect kit 7
Invoke the image toolkit so user can choose to use GD or ImageMagick.
1 call to iek_image_padding()
- iek_image_padding_effect in ./
iek.module - Effect callback for iek_image_border.
1 string reference to 'iek_image_padding'
- iek_image_default_styles in ./
iek.module - Implements hook_image_default_styles().
File
- ./
iek.module, line 558 - Primarily Drupal hooks and global API functions to manipulate image styles.
Code
function iek_image_padding(stdClass $image, $data) {
$data['padding_top'] = (int) round($data['padding_top']);
$data['padding_right'] = (int) round($data['padding_right']);
$data['padding_bottom'] = (int) round($data['padding_bottom']);
$data['padding_left'] = (int) round($data['padding_left']);
return iek_toolkit_invoke('padding', $image, array(
$data,
));
}