You are here

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

ImageAPIOptimizeProcessorReSmushIt constructor.

Overrides ImageAPIOptimizeProcessorBinary::__construct

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvPng.inc, line 11

Class

ImageAPIOptimizeProcessorAdvPng

Code

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