ThumbnailFormatService
class ThumbnailFormatService (View source)
Constants
FORMAT_PNG |
Thumbnail format: PNG. |
FORMAT_JPEG |
Thumbnail format: JPEG. |
FORMAT_AUTO |
Thumbnail format: automatic. |
Properties
protected Repository | $config | ||
protected File | $fileService |
Methods
Get the format to be used for a specific file (using the configured format option).
Get the format to be used for a specific file (calculating if from the file extension).
Get the format to be used for a specific file extension (using the configured format option).
Get the format to be used for a specific file extension (calculating if from the file extension).
Get the configured format.
Details
__construct(Repository $config, File $fileService)
No description
string
getFormatForFile(File|Version|string $file)
Get the format to be used for a specific file (using the configured format option).
string
getAutomaticFormatForFile(File|Version|string $file)
Get the format to be used for a specific file (calculating if from the file extension).
string
getFormatForFileExtension(string $extension)
Get the format to be used for a specific file extension (using the configured format option).
string
getAutomaticFormatForFileExtension(string $extension)
Get the format to be used for a specific file extension (calculating if from the file extension).
protected string
getConfiguredFormat()
Get the configured format.