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
ファイルを表示 Open project: neos/neos-development-collection

Protected Properties

Property 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

Public Methods

Method Description
canRefresh ( Thumbnail $thumbnail ) : boolean
getPriority ( ) : integer

Protected Methods

Method Description
getOption ( string $key ) : mixed
isExtensionSupported ( Thumbnail $thumbnail ) : boolean

Method Details

canRefresh() public method

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

getOption() protected method

protected getOption ( string $key ) : mixed
$key string
return mixed

getPriority() public static method

public static getPriority ( ) : integer
return integer

isExtensionSupported() protected method

protected isExtensionSupported ( Thumbnail $thumbnail ) : boolean
$thumbnail Neos\Media\Domain\Model\Thumbnail
return boolean

Property Details

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
return Neos\Flow\Utility\Environment

$imagineService protected_oe property

protected ImagineInterface,Imagine\Image $imagineService
return Imagine\Image\ImagineInterface

$options protected_oe property

protected array $options
return array

$priority protected_oe static_oe property

The priority for this thumbnail generator.
protected static int $priority
return integer

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager