SlightPHP\Thumbnail::setOutputFormat PHP Method

setOutputFormat() public method

sets the output type of the thumbnail
public setOutputFormat ( string $format = 'png' ) : void
$format string gif, jpg, png, wbmp
return void
    public function setOutputFormat($format = 'png')
    {
        if (array_key_exists(trim($format), $this->formats)) {
            $this->thumbnail_type = $this->formats[trim($format)];
        }
        // end if
    }