You are here

public function ImageAPIOptimizeProcessorJpegOptim::__construct in Image Optimize (or ImageAPI Optimize) 7.2

ImageAPIOptimizeProcessorReSmushIt constructor.

Overrides ImageAPIOptimizeProcessorBinary::__construct

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorJpegOptim.inc, line 13

Class

ImageAPIOptimizeProcessorJpegOptim

Code

public function __construct($data) {
  parent::__construct($data);
  if (isset($data['progressive'])) {
    $this->progressive = $data['progressive'];
  }
  if (isset($data['quality'])) {
    $this->quality = $data['quality'];
  }
  if (isset($data['size'])) {
    $this->size = $data['size'];
  }
}