CImage.php
public function setJpegQuality($quality = null)
    {
        if ($quality) {
            $this->useQuality = true;
        }

        $this->quality = isset($quality)
            ? $quality
            : self::JPEG_QUALITY_DEFAULT;

        (is_numeric($this->quality) and $this->quality > 0 and $this->quality <= 100)
            or $this->raiseError('Quality not in range.');

        $this->log("Setting JPEG quality to {$this->quality}.");

        return $this;
    }
public function setJpegQuality($quality = null)
    {
        if ($quality) {
            $this->useQuality = true;
        }

        $this->quality = isset($quality)
            ? $quality
            : self::JPEG_QUALITY_DEFAULT;

        (is_numeric($this->quality) and $this->quality > 0 and $this->quality <= 100)
            or $this->raiseError('Quality not in range.');

        $this->log("Setting JPEG quality to {$this->quality}.");

        return $this;
    }
public function setJpegQuality ( $ quality = null ) { if ( $ quality ) { $ this -> useQuality = true ; } $ this -> quality = isset ( $ quality ) ? $ quality : self :: JPEG_QUALITY_DEFAULT ; ( is_numeric ( $ this -> quality ) and $ this -> quality > 0 and $ this -> quality <= 100 ) or $ this -> raiseError ( 'Quality not in range.' ) ; $ this -> log ( "Setting JPEG quality to {$this->quality}." ) ; return $ this ; }
Set JPEG quality to use when saving image

@param int $quality as the quality to set.

@return $this
Set JPEG quality to use when saving image