function image_gd_check_settings in Drupal 7
Same name and namespace in other branches
- 4 includes/image.inc \image_gd_check_settings()
- 5 includes/image.inc \image_gd_check_settings()
- 6 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 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 modules/
system/ image.gd.inc - Retrieve settings for the GD2 toolkit.
- system_image_toolkits in modules/
system/ system.module - Implements hook_image_toolkits().
2 string references to 'image_gd_check_settings'
- ImageToolkitGdTestCase::testManipulations in 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 modules/
system/ system.module - Implements hook_image_toolkits().
File
- 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');
}