public function attach($event) { parent::attach($event); if ($this->resizeOnUpload) { $this->resizeOptions = array_merge(array('width' => 950, 'height' => 950, 'quality' => array('jpegQuality' => 75, 'pngCompressionLevel' => 7)), $this->resizeOptions); } }
public function attach($event) { parent::attach($event); if ($this->resizeOnUpload) { $this->resizeOptions = array_merge($this->defaultResizeOptions, $this->resizeOptions); } }
/** * @param \CComponent $owner */ public function attach($owner) { parent::attach($owner); $this->thumbnailer = Yii::app()->thumbnailer; if ($this->resizeOnUpload) { $this->resizeOptions = array_merge($this->defaultResizeOptions, $this->resizeOptions); } }