Property | Type | Description | |
---|---|---|---|
$adjustments | ArrayCollection<\Neos\Media\Domain\Model\Adjustment\AbstractImageAdjustment> | ||
$imageService | |||
$name | string | ||
$originalAsset |
Method | Description | |
---|---|---|
__construct ( |
Constructs a new Image Variant based on the given original | |
addAdjustment ( Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface $adjustment ) : void | Adds the given adjustment to the list of adjustments applied to this image variant. | |
addAdjustments ( array $adjustments ) : void | Adds the given adjustments to the list of adjustments applied to this image variant. | |
addTag ( |
Add a single tag to this asset | |
addVariant ( |
Adding variants to variants is not supported. | |
getAdjustments ( ) : Doctrine\Common\Collections\Collection | ||
getCaption ( ) : string | Returns the caption of the original image | |
getFileExtension ( ) : string | File extension of the image without leading dot. | |
getName ( ) : string | Returns the name | |
getOriginalAsset ( ) : |
Returns the original image this variant is based on | |
getResource ( ) : |
Returns the resource of this image variant | |
getTitle ( ) : string | Returns the title of the original image | |
getVariants ( ) : array | Retrieving variants from variants is not supported (no-operation) | |
initializeObject ( integer $initializationCause ) : void | Initialize this image variant | |
refresh ( ) : void | Refreshes this image variant: according to the added adjustments, a new image is rendered and stored as this image variant's resource. | |
setName ( string $name ) : void | Sets a name which can be used for identifying this variant | |
setResource ( |
Setting the image resource on an ImageVariant is not allowed, this method will throw a RuntimeException. | |
setTags ( Doctrine\Common\Collections\Collection $tags ) : void | Set the tags assigned to this asset | |
setTitle ( string $title ) : void | Setting the title on an ImageVariant is not allowed, this method will throw a RuntimeException. |
Method | Description | |
---|---|---|
applyAdjustment ( Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface $adjustment ) : void | Apply the given adjustment to the image variant. | |
renderResource ( ) : void | Tells the ImageService to render the resource of this ImageVariant according to the existing adjustments. |
public __construct ( |
||
$originalAsset | The original Image asset this variant is derived from |
public addAdjustment ( Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface $adjustment ) : void | ||
$adjustment | Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface | The adjustment to apply |
return | void |
public addAdjustments ( array $adjustments ) : void | ||
$adjustments | array | |
return | void |
public addVariant ( |
||
$variant | ||
return | void |
protected applyAdjustment ( Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface $adjustment ) : void | ||
$adjustment | Neos\Media\Domain\Model\Adjustment\ImageAdjustmentInterface | |
return | void |
public getAdjustments ( ) : Doctrine\Common\Collections\Collection | ||
return | Doctrine\Common\Collections\Collection |
public getCaption ( ) : string | ||
return | string |
public getFileExtension ( ) : string | ||
return | string |
public getOriginalAsset ( ) : |
||
return |
public getResource ( ) : |
||
return |
public getVariants ( ) : array | ||
return | array |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
return | void |
protected renderResource ( ) : void | ||
return | void |
public setResource ( |
||
$resource | ||
return | void |
protected ArrayCollection<\Neos\Media\Domain\Model\Adjustment\AbstractImageAdjustment> $adjustments | ||
return | ArrayCollection<\Neos\Media\Domain\Model\Adjustment\AbstractImageAdjustment> |
protected ImageService,Neos\Media\Domain\Service $imageService | ||
return |