CImage.php
public function setSaveAsExtension($saveAs = null)
    {
        if (isset($saveAs)) {
            $saveAs = strtolower($saveAs);
            $this->checkFileExtension($saveAs);
            $this->saveAs = $saveAs;
            $this->extension = $saveAs;
        }

        $this->log("Prepare to save image as: " . $this->extension);

        return $this;
    }
public function setSaveAsExtension($saveAs = null)
    {
        if (isset($saveAs)) {
            $saveAs = strtolower($saveAs);
            $this->checkFileExtension($saveAs);
            $this->saveAs = $saveAs;
            $this->extension = $saveAs;
        }

        $this->log("Prepare to save image as: " . $this->extension);

        return $this;
    }
public function setSaveAsExtension ( $ saveAs = null ) { if ( isset ( $ saveAs ) ) { $ saveAs = strtolower ( $ saveAs ) ; $ this -> checkFileExtension ( $ saveAs ) ; $ this -> saveAs = $ saveAs ; $ this -> extension = $ saveAs ; } $ this -> log ( "Prepare to save image as: " . $ this -> extension ) ; return $ this ; }
Set extension for filename to save as.

@param string $saveas extension to save image as

@return $this
Set extension for filename to save as .