function imagick_convert_form in Imagick 7
Settings form for the imagick convert effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_convert_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.convert.inc, line 47
Code
function imagick_convert_form($data) {
$data = array_merge(imagick_convert_defaults(), (array) $data);
$form['format'] = array(
'#title' => t("File format"),
'#type' => 'select',
'#default_value' => $data['format'],
'#options' => imagick_file_formats(),
);
$form['quality'] = array(
'#type' => 'textfield',
'#title' => t('Quality'),
'#description' => t('Override the default image quality. Works for Imagemagick only. Ranges from 0 to 100. For jpg, higher values mean better image quality but bigger files. For png it is a combination of compression and filter'),
'#size' => 3,
'#maxlength' => 3,
'#default_value' => $data['quality'],
'#field_suffix' => '%',
);
return $form;
}