You are here

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

ImageAPIOptimizeProcessorReSmushIt constructor.

Overrides ImageAPIOptimizeProcessorBinary::__construct

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvDef.inc, line 11

Class

ImageAPIOptimizeProcessorAdvDef

Code

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