protected function gdImageCreate($path,$mime){
		switch($mime){
			case 'image/jpeg':
			return imagecreatefromjpeg($path);

			case 'image/png':
			return imagecreatefrompng($path);

			case 'image/gif':
			return imagecreatefromgif($path);

			case 'image/xbm':
			return imagecreatefromxbm($path);
		}
		return false;
	}
protected function gdImageCreate($path,$mime){
		switch($mime){
			case 'image/jpeg':
			return imagecreatefromjpeg($path);

			case 'image/png':
			return imagecreatefrompng($path);

			case 'image/gif':
			return imagecreatefromgif($path);

			case 'image/xbm':
			return imagecreatefromxbm($path);
		}
		return false;
	}
protected function gdImageCreate ( $ path , $ mime ) { switch ( $ mime ) { case 'image/jpeg' : return imagecreatefromjpeg ( $ path ) ; case 'image/png' : return imagecreatefrompng ( $ path ) ; case 'image/gif' : return imagecreatefromgif ( $ path ) ; case 'image/xbm' : return imagecreatefromxbm ( $ path ) ; } return false ; }
Create an gd image according to the specified mime type

@param string $path image file
@param string $mime
@return gd image resource identifier
Create an gd image according to the specified mime type