function image_gd_check_settings

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/image.gd.inc \image_gd_check_settings()

Verify GD2 settings (that the right version is actually installed).

Return value

A boolean indicating if the GD toolkit is available on this machine.

Related topics

3 calls to image_gd_check_settings()
ImageToolkitGdTestCase::testManipulations in drupal-7.x/modules/simpletest/tests/image.test
Since PHP can't visually check that our images have been manipulated properly, build a list of expected color values for each of the corners and the expected height and widths for the final images.
image_gd_settings in drupal-7.x/modules/system/image.gd.inc
Retrieve settings for the GD2 toolkit.
system_image_toolkits in drupal-7.x/modules/system/system.module
Implements hook_image_toolkits().
2 string references to 'image_gd_check_settings'
ImageToolkitGdTestCase::testManipulations in drupal-7.x/modules/simpletest/tests/image.test
Since PHP can't visually check that our images have been manipulated properly, build a list of expected color values for each of the corners and the expected height and widths for the final images.
system_image_toolkits in drupal-7.x/modules/system/system.module
Implements hook_image_toolkits().

Archivo

drupal-7.x/modules/system/image.gd.inc, line 58
GD2 toolkit for image manipulation within Drupal.

Código

function image_gd_check_settings() {
  if ($check = get_extension_funcs('gd')) {
    if (in_array('imagegd2', $check)) {
      // GD2 support is available.
      return TRUE;
    }
  }
  return FALSE;
}