public function scaleFixedHeight($height) { $_width = $this->adapter->getWidth(); $_height = $this->adapter->getHeight(); $width = (int) ($_width * $height / $_height); $this->adapter->resize($width, $height); return $this; }