You are here

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

ImageAPIOptimizeProcessorReSmushIt constructor.

Overrides ImageAPIOptimizeProcessorInterface::__construct

File

modules/kraken/plugins/ImageAPIOptimizeProcessorKraken.inc, line 14

Class

ImageAPIOptimizeProcessorKraken

Code

public function __construct($data) {
  if (isset($data['api_key'])) {
    $this->api_key = $data['api_key'];
  }
  if (isset($data['api_secret'])) {
    $this->api_secret = $data['api_secret'];
  }
  if (isset($data['lossy'])) {
    $this->lossy = $data['lossy'];
  }
  if (isset($data['webp'])) {
    $this->webp = $data['webp'];
  }
  if (isset($data['timeout'])) {
    $this->timeout = $data['timeout'];
  }
}