PHP Class Neos\Media\Domain\Model\ThumbnailGenerator\AbstractThumbnailGenerator

A Thumbnail Generator is used to generate thumbnail based on constraints, like priority, file extension, ... You can implement your own Generator. The output of a Generator must be an image, check existing Generators for inspiration.
Inheritance: implements Neos\Media\Domain\Model\ThumbnailGenerator\ThumbnailGeneratorInterface
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$environment Neos\Flow\Utility\Environment
$imagineService Imagine\Image\ImagineInterface
$options array
$priority integer The priority for this thumbnail generator.
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

Méthodes publiques

Méthode Description
canRefresh ( Thumbnail $thumbnail ) : boolean
getPriority ( ) : integer

Méthodes protégées

Méthode Description
getOption ( string $key ) : mixed
isExtensionSupported ( Thumbnail $thumbnail ) : boolean

Method Details

canRefresh() public méthode

public canRefresh ( Thumbnail $thumbnail ) : boolean
$thumbnail Neos\Media\Domain\Model\Thumbnail
Résultat boolean TRUE if this ThumbnailGenerator can convert the given thumbnail, FALSE otherwise.

getOption() protected méthode

protected getOption ( string $key ) : mixed
$key string
Résultat mixed

getPriority() public static méthode

public static getPriority ( ) : integer
Résultat integer

isExtensionSupported() protected méthode

protected isExtensionSupported ( Thumbnail $thumbnail ) : boolean
$thumbnail Neos\Media\Domain\Model\Thumbnail
Résultat boolean

Property Details

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
Résultat Neos\Flow\Utility\Environment

$imagineService protected_oe property

protected ImagineInterface,Imagine\Image $imagineService
Résultat Imagine\Image\ImagineInterface

$options protected_oe property

protected array $options
Résultat array

$priority protected_oe static_oe property

The priority for this thumbnail generator.
protected static int $priority
Résultat integer

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Résultat Neos\Flow\ResourceManagement\ResourceManager