You are here

public function ImageAPIOptimizeProcessorOptiPng::configForm in Image Optimize (or ImageAPI Optimize) 7.2

Overrides ImageAPIOptimizeProcessorBinary::configForm

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorOptiPng.inc, line 39

Class

ImageAPIOptimizeProcessorOptiPng

Code

public function configForm() {
  $form = parent::configForm();
  $form['level'] = array(
    '#title' => t('Optimization level'),
    '#type' => 'select',
    '#options' => range(0, 7),
    '#default_value' => $this
      ->getLevel(),
  );
  $form['interlace'] = array(
    '#title' => t('Interlace'),
    '#type' => 'select',
    '#options' => array(
      '' => t('No change'),
      0 => t('Non-interlaced'),
      1 => t('Interlaced'),
    ),
    '#default_value' => $this
      ->getInterlace(),
    '#description' => t('If "No change" is select, the output will have the same interlace type as the input.'),
  );
  return $form;
}