function imageapi_optimize_binaries_optipng_form in Image Optimize (or ImageAPI Optimize) 7
OptiPNG: Advanced PNG Optimizer ImageAPI Optimize form callback.
File
- binaries/
optipng.inc, line 27 - OptiPNG: Advanced PNG Optimizer integration.
Code
function imageapi_optimize_binaries_optipng_form($settings) {
$form = array();
$form['level'] = array(
'#title' => t('Optimization level'),
'#type' => 'select',
'#options' => range(0, 7),
'#default_value' => $settings['level'],
);
$form['interlace'] = array(
'#title' => t('Interlace'),
'#type' => 'select',
'#options' => array(
'' => t('No change'),
0 => t('Non-interlaced'),
1 => t('Interlaced'),
),
'#default_value' => $settings['interlace'],
'#description' => t('If "No change" is select, the output will have the same interlace type as the input.'),
);
return $form;
}