You are here

function _imagefield_crop_verify_gd in Imagefield Crop 5

2 calls to _imagefield_crop_verify_gd()
imagefield_crop_widget_settings in ./imagefield_crop.module
Implementation of hook_widget_settings().
_imagefield_crop_resize in ./imagefield_crop.module

File

./imagefield_crop.module, line 562

Code

function _imagefield_crop_verify_gd() {
  if (image_get_toolkit() != 'gd') {
    $toolkits = image_get_available_toolkits();
    drupal_set_message(t('Image cropping only works with %toolkit. Please select it at !url, or ask your system administrator to do so', array(
      '%toolkit' => $toolkits['gd'],
      '!url' => l('Image Toolkit selection page', 'admin/settings/image-toolkit'),
    )), 'error');
    return FALSE;
  }
  return TRUE;
}