public function ratio()
	{
		$w = $this->width();
		$h = $this->height();
		
		if ($w > $h) {
			return $w / $h;
		}
		else {
			return $h / $w;
		}
	}
public function ratio()
	{
		$w = $this->width();
		$h = $this->height();
		
		if ($w > $h) {
			return $w / $h;
		}
		else {
			return $h / $w;
		}
	}
public function ratio ( ) { $ w = $ this -> width ( ) ; $ h = $ this -> height ( ) ; if ( $ w > $ h ) { return $ w / $ h ; } else { return $ h / $ w ; } }
Gets the image resource ratio.

@return float
Gets the image resource ratio .