function 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/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/modules/system/image.gd.inc
Retrieve settings for the GD2 toolkit.
system_image_toolkits in drupal/modules/system/system.module
Implements hook_image_toolkits().
2 string references to 'image_gd_check_settings'
ImageToolkitGdTestCase::testManipulations in drupal/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/modules/system/system.module
Implements hook_image_toolkits().

File

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

Code

function image_gd_check_settings() {

  // GD2 support is available.
  return function_exists('imagegd2');
}