/** * Saves the current image to a JPEG file with the given path. * @param string the path of the file to create. * @param int optional, the JPEG compression quality - an integer between 1 (poor quality, small file) and 100 (high quality, large file). If null (default), 'CImageJPEGQuality' will be used, if defined in Yii::app()->params. */ public function saveJPEG($path, $quality = null) { return parent::saveJPEG($path, $quality); $this->_path = $path; }