protected function setFormat($format = null)
    {
        if ($format == '' && $this->image instanceof Image) {
            $format = $this->image->mime;
        }

        $this->format = $format ? $format : 'jpg';

        return $this;
    }
protected function setFormat($format = null)
    {
        if ($format == '' && $this->image instanceof Image) {
            $format = $this->image->mime;
        }

        $this->format = $format ? $format : 'jpg';

        return $this;
    }
protected function setFormat ( $ format = null ) { if ( $ format == '' && $ this -> image instanceof Image ) { $ format = $ this -> image -> mime ; } $ this -> format = $ format ? $ format : 'jpg' ; return $ this ; }
Determines output format

@param string $format
Determines output format