SlightPHP\Thumbnail::setMaxHeight PHP Method

setMaxHeight() public method

sets the max. height of the thumbnail
public setMaxHeight ( integer $height ) : boolean
$height integer
return boolean
    public function setMaxHeight($height = 0)
    {
        $this->readSourceImageData();
        $height = (int) $height;
        if ($height < $this->image_height && $height > 0) {
            $this->thumb_max_height = $height;
        } else {
            $this->thumb_max_height = $this->image_height;
        }
        return true;
    }