Spatie\Browsershot\Browsershot::setQuality PHP Method

setQuality() public method

Set the image quality.
public setQuality ( $quality )
$quality
    public function setQuality($quality)
    {
        if (!is_numeric($quality) || $quality < 1 || $quality > 100) {
            throw new Exception('Quality must be a numeric value between 1 - 100');
        }
        $this->quality = $quality;
        return $this;
    }