function getSize($unit = 'b', $precision = 2)
{
$unit = strtolower($unit);
switch ($unit) {
case "g":
case "gb":
return round((int) $this->size / 1024 / 1024 / 1024, $precision);
break;
case "m":
case "mb":
return round((int) $this->size / 1024 / 1024, $precision);
break;
case "k":
case "kb":
return round((int) $this->size / 1024, $precision);
break;
default:
return $this->size;
}
return $this->height;
}