1 image.gd.inc image_gd_settings()

Retrieve settings for the GD2 toolkit.

Related topics

File

core/modules/system/image.gd.inc, line 15
GD2 toolkit for image manipulation within Backdrop.

Code

function image_gd_settings() {
  $form['image_jpeg_quality'] = array(
    '#type' => 'number',
    '#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.'),
    '#min' => 0,
    '#max' => 100,
    '#default_value' => config_get('system.core', 'image_jpeg_quality'),
    '#field_suffix' => t('%'),
  );

  return $form;
}