public function scaleByHeight($height, $forceResize = false)
{
if ($forceResize || $height < $this->getHeight() || $this->isVectorGraphic()) {
$width = round($height / $this->getHeight() * $this->getWidth(), 0);
$this->resize(max(1, $width), max(1, $height));
}
return $this;
}