You are here

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

ImageAPIOptimizeProcessorReSmushIt constructor.

Overrides ImageAPIOptimizeProcessorBinary::__construct

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorOptiPng.inc, line 11

Class

ImageAPIOptimizeProcessorOptiPng

Code

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