Property | Type | Description | |
---|---|---|---|
$assetRepository | |||
$environment | |||
$imageSizeCache | Neos\Cache\Frontend\VariableFrontend | ||
$imagineService | Imagine\Image\ImagineInterface | ||
$resourceManager | |||
$settings | array |
Method | Description | |
---|---|---|
getImageSize ( |
Get the size of a Flow PersistentResource that contains an image file. | |
injectSettings ( array $settings ) : void | ||
processImage ( |
Method | Description | |
---|---|---|
applyAdjustments ( Imagine\Image\ImageInterface $image, array $adjustments, boolean &$adjustmentsApplied ) : Imagine\Image\ImageInterface | ||
getOptionsMergedWithDefaults ( array $additionalOptions = [] ) : array | ||
isAnimatedGif ( string $image ) : boolean | Detects whether the given GIF image data contains more than one frame |
protected applyAdjustments ( Imagine\Image\ImageInterface $image, array $adjustments, boolean &$adjustmentsApplied ) : Imagine\Image\ImageInterface | ||
$image | Imagine\Image\ImageInterface | |
$adjustments | array | Ordered list of adjustments to apply. |
$adjustmentsApplied | boolean | Reference to a variable that will hold information if an adjustment was actually applied. |
return | Imagine\Image\ImageInterface |
public getImageSize ( |
||
$resource | ||
return | array | width and height as keys |
protected getOptionsMergedWithDefaults ( array $additionalOptions = [] ) : array | ||
$additionalOptions | array | |
return | array |
public injectSettings ( array $settings ) : void | ||
$settings | array | |
return | void |
protected isAnimatedGif ( string $image ) : boolean | ||
$image | string | string containing the binary GIF data |
return | boolean | true if gif contains more than one frame |
public processImage ( |
||
$originalResource | ||
$adjustments | array | |
return | array | resource, width, height as keys |
protected AssetRepository,Neos\Media\Domain\Repository $assetRepository | ||
return |
protected Environment,Neos\Flow\Utility $environment | ||
return |
protected VariableFrontend,Neos\Cache\Frontend $imageSizeCache | ||
return | Neos\Cache\Frontend\VariableFrontend |
protected ImagineInterface,Imagine\Image $imagineService | ||
return | Imagine\Image\ImagineInterface |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
return |