You are here

function iek_image_border in Image effect kit 7

Invoke the image toolkit so user can choose to use GD or ImageMagick.

1 call to iek_image_border()
iek_image_border_effect in ./iek.module
Effect callback for iek_image_border.

File

./iek.module, line 395
Primarily Drupal hooks and global API functions to manipulate image styles.

Code

function iek_image_border(stdClass $image, $data) {
  $data['border_thick_top'] = (int) round($data['border_thick_top']);
  $data['border_thick_right'] = (int) round($data['border_thick_right']);
  $data['border_thick_bottom'] = (int) round($data['border_thick_bottom']);
  $data['border_thick_left'] = (int) round($data['border_thick_left']);
  return iek_toolkit_invoke('border', $image, array(
    $data,
  ));
}