src/components/ImageManager.php
private function _saveOriginal ($path, $name, $file)
		{
			$filepath = $path . DIRECTORY_SEPARATOR . $name;
			if (Yii::$app->settings->get('image_original_save', true))
			{
				FileHelper::createDirectory(dirname($filepath));
				copy($file, $filepath);
			}
		}
private function _saveOriginal ($path, $name, $file)
		{
			$filepath = $path . DIRECTORY_SEPARATOR . $name;
			if (Yii::$app->settings->get('image_original_save', true))
			{
				FileHelper::createDirectory(dirname($filepath));
				copy($file, $filepath);
			}
		}
private function _saveOriginal ( $ path , $ name , $ file ) { $ filepath = $ path . DIRECTORY_SEPARATOR . $ name ; if ( Yii :: $ app -> settings -> get ( 'image_original_save' , true ) ) { FileHelper :: createDirectory ( dirname ( $ filepath ) ) ; copy ( $ file , $ filepath ) ; } }
Saves a image to the original format.

@param string $path
@param string $dest
@param string $type
Saves a image to the original format .