You are here

function imageapi_optimize_binaries_jpegoptim_form in Image Optimize (or ImageAPI Optimize) 7

Jpegoptim ImageAPI Optimize form callback.

File

binaries/jpegoptim.inc, line 26
Jpegoptim integration.

Code

function imageapi_optimize_binaries_jpegoptim_form($settings) {
  $form = array();
  $form['progressive'] = array(
    '#title' => t('Progressive'),
    '#type' => 'select',
    '#options' => array(
      '' => t('No change'),
      0 => t('Non-progressive'),
      1 => t('Progressive'),
    ),
    '#default_value' => $settings['progressive'],
    '#description' => t('If "No change" is select, the output will have the same as the input.'),
  );
  return $form;
}