프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$assetRepository | |||
$environment | |||
$imageSizeCache | Neos\Cache\Frontend\VariableFrontend | ||
$imagineService | Imagine\Image\ImagineInterface | ||
$resourceManager | |||
$settings | array |
메소드 | 설명 | |
---|---|---|
getImageSize ( |
Get the size of a Flow PersistentResource that contains an image file. | |
injectSettings ( array $settings ) : void | ||
processImage ( |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | Imagine\Image\ImageInterface |
public getImageSize ( |
||
$resource | ||
리턴 | array | width and height as keys |
protected getOptionsMergedWithDefaults ( array $additionalOptions = [] ) : array | ||
$additionalOptions | array | |
리턴 | array |
protected isAnimatedGif ( string $image ) : boolean | ||
$image | string | string containing the binary GIF data |
리턴 | boolean | true if gif contains more than one frame |
public processImage ( |
||
$originalResource | ||
$adjustments | array | |
리턴 | array | resource, width, height as keys |
protected AssetRepository,Neos\Media\Domain\Repository $assetRepository | ||
리턴 |
protected Environment,Neos\Flow\Utility $environment | ||
리턴 |
protected VariableFrontend,Neos\Cache\Frontend $imageSizeCache | ||
리턴 | Neos\Cache\Frontend\VariableFrontend |
protected ImagineInterface,Imagine\Image $imagineService | ||
리턴 | Imagine\Image\ImagineInterface |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
리턴 |