protected function setQuality($quality)
    {
        $quality = is_null($quality) ? 90 : $quality;
        $quality = $quality === 0 ? 1 : $quality;

        if ($quality < 0 || $quality > 100) {
            throw new \Intervention\Image\Exception\InvalidArgumentException(
                'Quality must range from 0 to 100.'
            );
        }

        $this->quality = intval($quality);

        return $this;
    }
protected function setQuality($quality)
    {
        $quality = is_null($quality) ? 90 : $quality;
        $quality = $quality === 0 ? 1 : $quality;

        if ($quality < 0 || $quality > 100) {
            throw new \Intervention\Image\Exception\InvalidArgumentException(
                'Quality must range from 0 to 100.'
            );
        }

        $this->quality = intval($quality);

        return $this;
    }
protected function setQuality ( $ quality ) { $ quality = is_null ( $ quality ) ? 90 : $ quality ; $ quality = $ quality === 0 ? 1 : $ quality ; if ( $ quality < 0 || $ quality > 100 ) { throw new \ Intervention \ Image \ Exception \ InvalidArgumentException ( 'Quality must range from 0 to 100.' ) ; } $ this -> quality = intval ( $ quality ) ; return $ this ; }
Determines output quality

@param int $quality
Determines output quality