public function setWidth($pValue = 0)
{
// Resize proportional?
if ($this->resizeProportional && $pValue != 0) {
$ratio = $this->height / $this->width;
$this->height = (int) round($ratio * $pValue);
}
// Set width
$this->width = $pValue;
return $this;
}