CImage.php
public function setPngCompression($compress = null)
    {
        if ($compress) {
            $this->useCompress = true;
        }

        $this->compress = isset($compress)
            ? $compress
            : self::PNG_COMPRESSION_DEFAULT;

        (is_numeric($this->compress) and $this->compress >= -1 and $this->compress <= 9)
            or $this->raiseError('Quality not in range.');

        $this->log("Setting PNG compression level to {$this->compress}.");

        return $this;
    }
public function setPngCompression($compress = null)
    {
        if ($compress) {
            $this->useCompress = true;
        }

        $this->compress = isset($compress)
            ? $compress
            : self::PNG_COMPRESSION_DEFAULT;

        (is_numeric($this->compress) and $this->compress >= -1 and $this->compress <= 9)
            or $this->raiseError('Quality not in range.');

        $this->log("Setting PNG compression level to {$this->compress}.");

        return $this;
    }
public function setPngCompression ( $ compress = null ) { if ( $ compress ) { $ this -> useCompress = true ; } $ this -> compress = isset ( $ compress ) ? $ compress : self :: PNG_COMPRESSION_DEFAULT ; ( is_numeric ( $ this -> compress ) and $ this -> compress >= - 1 and $ this -> compress <= 9 ) or $ this -> raiseError ( 'Quality not in range.' ) ; $ this -> log ( "Setting PNG compression level to {$this->compress}." ) ; return $ this ; }
Set PNG compressen algorithm to use when saving image

@param int $compress as the algorithm to use.

@return $this
Set PNG compressen algorithm to use when saving image