You are here

public function JpegTran::submitConfigurationForm in Image Optimize Binaries 8

Overrides ImageAPIOptimizeProcessorBinaryBase::submitConfigurationForm

File

src/Plugin/ImageAPIOptimizeProcessor/JpegTran.php, line 75

Class

JpegTran
Uses the JpegTran binary to optimize images.

Namespace

Drupal\imageapi_optimize_binaries\Plugin\ImageAPIOptimizeProcessor

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this->configuration['progressive'] = $form_state
    ->getValue('progressive');
}