concrete/src/File/Image/Thumbnail/ThumbnailFormatService.php
protected function getConfiguredFormat()
    {
        $format = $this->config->get('concrete.misc.default_thumbnail_format');
        if ($format === static::FORMAT_AUTO || $this->bitmapFormat->isFormatValid($format)) {
            $result = $format;
        } elseif ($format === 'jpg') { // legacy value
            $result = BitmapFormat::FORMAT_JPEG;
        } else {
            $result = static::FORMAT_AUTO;
        }

        return $result;
    }
protected function getConfiguredFormat()
    {
        $format = $this->config->get('concrete.misc.default_thumbnail_format');
        if ($format === static::FORMAT_AUTO || $this->bitmapFormat->isFormatValid($format)) {
            $result = $format;
        } elseif ($format === 'jpg') { // legacy value
            $result = BitmapFormat::FORMAT_JPEG;
        } else {
            $result = static::FORMAT_AUTO;
        }

        return $result;
    }
protected function getConfiguredFormat ( ) { $ format = $ this -> config -> get ( 'concrete.misc.default_thumbnail_format' ) ; if ( $ format === static :: FORMAT_AUTO || $ this -> bitmapFormat -> isFormatValid ( $ format ) ) { $ result = $ format ; } elseif ( $ format === 'jpg' ) { // legacy value $ result = BitmapFormat :: FORMAT_JPEG ; } else { $ result = static :: FORMAT_AUTO ; } return $ result ; }
Get the configured format.

@return string One of the \Concrete\Core\File\Image\BitmapFormat::FORMAT_... constants, or ThumbnailFormatService::FORMAT_AUTO
Get the configured format .