image_gd_check_settings

Definition

image_gd_check_settings()
includes/image.gd.inc, line 66

Description

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

Return value

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

Related topics

Namesort iconDescription
Image toolkitsDrupal's image toolkits provide an abstraction layer for common image file manipulations like scaling, cropping, and rotating. The abstraction frees module authors from the need to support multiple image libraries, and it allows site...

Code

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

Drupal is a registered trademark of Dries Buytaert.