ThumbnailFormatService
class ThumbnailFormatService (View source)
Constants
| deprecated FORMAT_PNG | 
                     
  | 
            
| deprecated FORMAT_JPEG | 
                     
  | 
            
| FORMAT_AUTO | 
                     Thumbnail format: automatic.  | 
            
Properties
| protected Repository | $config | ||
| protected File | $fileService | ||
| protected BitmapFormat | $bitmapFormat | 
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, BitmapFormat $bitmapFormat)
        
    
    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.