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