Свойство | Type | Description | |
---|---|---|---|
$allowUpScaling | boolean | ||
$height | integer | ||
$maximumHeight | integer | ||
$maximumWidth | integer | ||
$minimumHeight | integer | ||
$minimumWidth | integer | ||
$position | integer | ||
$ratioMode | string | One of the ImagineImageInterface::RATIOMODE_* constants | |
$width | integer |
Méthode | Description | |
---|---|---|
applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface | Applies this adjustment to the given Imagine Image object | |
canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean | Check if this Adjustment can or should be applied to its ImageVariant. | |
getAllowUpScaling ( ) : boolean | Returns allowUpScaling | |
getHeight ( ) : integer | Returns height | |
getMaximumHeight ( ) : integer | Returns maximumHeight | |
getMaximumWidth ( ) : integer | Returns maximumWidth | |
getMinimumHeight ( ) : integer | Returns minimumHeight | |
getMinimumWidth ( ) : integer | Returns minimumWidth | |
getRatioMode ( ) : string | Returns ratioMode | |
getWidth ( ) : integer | Returns width | |
setAllowUpScaling ( boolean $allowUpScaling ) : void | Sets allowUpScaling | |
setHeight ( integer $height ) : void | Sets height | |
setMaximumHeight ( integer $maximumHeight ) : void | Sets maximumHeight | |
setMaximumWidth ( integer $maximumWidth ) : void | Sets maximumWidth | |
setMinimumHeight ( integer $minimumHeight ) : void | Sets minimumHeight | |
setMinimumWidth ( integer $minimumWidth ) : void | Sets minimumWidth | |
setRatioMode ( string $ratioMode ) : void | Sets ratioMode | |
setWidth ( integer $width ) : void | Sets width |
Méthode | Description | |
---|---|---|
calculateDimensions ( Imagine\Image\BoxInterface $originalDimensions ) : Imagine\Image\BoxInterface | Calculates and returns the dimensions the image should have according all parameters set in this adjustment. | |
calculateOutboundBox ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | Calculate the final dimensions for an outbound box. usually exactly the requested width and height unless that would require upscaling and it is not allowed. | |
calculateOutboundScalingDimensions ( Imagine\Image\BoxInterface $imageSize, Imagine\Image\BoxInterface $requestedDimensions ) : Imagine\Image\BoxInterface | Calculates a resize dimension box that allows for outbound resize. | |
calculateScalingToHeight ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedHeight ) : Imagine\Image\BoxInterface | Calculates new dimensions with a requested height applied. Takes upscaling into consideration. | |
calculateScalingToWidth ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth ) : Imagine\Image\BoxInterface | Calculates new dimensions with a requested width applied. Takes upscaling into consideration. | |
calculateWithFixedDimensions ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
resize ( Imagine\Image\ImageInterface $image, string $mode = ImageInterface::RATIOMODE_INSET, string $filter = ImagineImageInterface::FILTER_UNDEFINED ) : Imagine\Image\ManipulatorInterface | Executes the actual resizing operation on the Imagine image. |
public applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface | ||
$image | Imagine\Image\ImageInterface | |
Résultat | Imagine\Image\ImageInterface |
protected calculateDimensions ( Imagine\Image\BoxInterface $originalDimensions ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | Dimensions of the unadjusted image |
Résultat | Imagine\Image\BoxInterface |
protected calculateOutboundBox ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
Résultat | Imagine\Image\BoxInterface |
protected calculateOutboundScalingDimensions ( Imagine\Image\BoxInterface $imageSize, Imagine\Image\BoxInterface $requestedDimensions ) : Imagine\Image\BoxInterface | ||
$imageSize | Imagine\Image\BoxInterface | |
$requestedDimensions | Imagine\Image\BoxInterface | |
Résultat | Imagine\Image\BoxInterface |
protected calculateScalingToHeight ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedHeight | integer | |
Résultat | Imagine\Image\BoxInterface |
protected calculateScalingToWidth ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
Résultat | Imagine\Image\BoxInterface |
protected calculateWithFixedDimensions ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
Résultat | Imagine\Image\BoxInterface |
public canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean | ||
$image | Imagine\Image\ImageInterface | |
Résultat | boolean |
public getAllowUpScaling ( ) : boolean | ||
Résultat | boolean |
public getMaximumHeight ( ) : integer | ||
Résultat | integer |
public getMaximumWidth ( ) : integer | ||
Résultat | integer |
public getMinimumHeight ( ) : integer | ||
Résultat | integer |
public getMinimumWidth ( ) : integer | ||
Résultat | integer |
protected resize ( Imagine\Image\ImageInterface $image, string $mode = ImageInterface::RATIOMODE_INSET, string $filter = ImagineImageInterface::FILTER_UNDEFINED ) : Imagine\Image\ManipulatorInterface | ||
$image | Imagine\Image\ImageInterface | |
$mode | string | |
$filter | string | |
Résultat | Imagine\Image\ManipulatorInterface |
public setAllowUpScaling ( boolean $allowUpScaling ) : void | ||
$allowUpScaling | boolean | |
Résultat | void |
public setMaximumHeight ( integer $maximumHeight ) : void | ||
$maximumHeight | integer | |
Résultat | void |
public setMaximumWidth ( integer $maximumWidth ) : void | ||
$maximumWidth | integer | |
Résultat | void |
public setMinimumHeight ( integer $minimumHeight ) : void | ||
$minimumHeight | integer | |
Résultat | void |
public setMinimumWidth ( integer $minimumWidth ) : void | ||
$minimumWidth | integer | |
Résultat | void |
public setRatioMode ( string $ratioMode ) : void | ||
$ratioMode | string | One of the \Neos\Media\Domain\Model\ImageInterface::RATIOMODE_* constants |
Résultat | void |
protected string $ratioMode | ||
Résultat | string |