Example #1
0
 /**
  * @inheritdoc
  */
 protected function processFile($readFilePath)
 {
     return ImageHelper::grayscale($readFilePath);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function processFile($readFilePath)
 {
     return ImageHelper::watermark($readFilePath, $this->filename, [$this->x, $this->y]);
 }
Example #3
0
 /**
  * @inheritdoc
  */
 protected function processFile($readFilePath)
 {
     return ImageHelper::thumbnail($readFilePath, $this->width, $this->height, $this->mode, $this->backgroundColor);
 }
Example #4
0
 /**
  * Restores [[ImageHelper::getImage()]]] value.
  */
 protected function restoreImagine()
 {
     ImageHelper::setImagine($this->_oldImagine);
 }