function image_gd_settings in Drupal 5
Same name and namespace in other branches
- 4 includes/image.inc \image_gd_settings()
- 6 includes/image.gd.inc \image_gd_settings()
- 7 modules/system/image.gd.inc \image_gd_settings()
Retrieve settings for the GD2 toolkit.
1 call to image_gd_settings()
- image_toolkit_invoke in includes/
image.inc - Invokes the given method using the currently selected toolkit.
File
- includes/
image.inc, line 181
Code
function image_gd_settings() {
if (image_gd_check_settings()) {
$form = array();
$form['status'] = array(
'#value' => t('The built-in GD2 toolkit is installed and working properly.'),
);
$form['image_jpeg_quality'] = array(
'#type' => 'textfield',
'#title' => t('JPEG quality'),
'#description' => t('Define the image quality for JPEG manipulations. Ranges from 0 to 100. Higher values mean better image quality but bigger files.'),
'#size' => 10,
'#maxlength' => 3,
'#default_value' => variable_get('image_jpeg_quality', 75),
'#field_suffix' => t('%'),
);
return $form;
}
else {
form_set_error('image_toolkit', t('The built-in GD image toolkit requires that the GD module for PHP be installed and configured properly. For more information see <a href="@url">PHP\'s image documentation</a>.', array(
'@url' => 'http://php.net/image',
)));
return FALSE;
}
}