Bkwld\Croppa\Image::resize PHP Method

resize() public method

Resize with no cropping
public resize ( integer $width, integer $height )
$width integer
$height integer
    public function resize($width, $height)
    {
        if ($width && $height) {
            $this->thumb->resize($width, $height);
        } else {
            if (!$width) {
                $this->thumb->resize(99999, $height);
            } else {
                if (!$height) {
                    $this->thumb->resize($width, 99999);
                }
            }
        }
        return $this;
    }