Property | 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 |
Method | 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 |
Method | 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 | |
return | Imagine\Image\ImageInterface |
protected calculateDimensions ( Imagine\Image\BoxInterface $originalDimensions ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | Dimensions of the unadjusted image |
return | Imagine\Image\BoxInterface |
protected calculateOutboundBox ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
return | Imagine\Image\BoxInterface |
protected calculateOutboundScalingDimensions ( Imagine\Image\BoxInterface $imageSize, Imagine\Image\BoxInterface $requestedDimensions ) : Imagine\Image\BoxInterface | ||
$imageSize | Imagine\Image\BoxInterface | |
$requestedDimensions | Imagine\Image\BoxInterface | |
return | Imagine\Image\BoxInterface |
protected calculateScalingToHeight ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedHeight | integer | |
return | Imagine\Image\BoxInterface |
protected calculateScalingToWidth ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
return | Imagine\Image\BoxInterface |
protected calculateWithFixedDimensions ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
return | Imagine\Image\BoxInterface |
public canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean | ||
$image | Imagine\Image\ImageInterface | |
return | boolean |
public getAllowUpScaling ( ) : boolean | ||
return | boolean |
public getMaximumHeight ( ) : integer | ||
return | integer |
public getMaximumWidth ( ) : integer | ||
return | integer |
public getMinimumHeight ( ) : integer | ||
return | integer |
public getMinimumWidth ( ) : integer | ||
return | 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 | |
return | Imagine\Image\ManipulatorInterface |
public setAllowUpScaling ( boolean $allowUpScaling ) : void | ||
$allowUpScaling | boolean | |
return | void |
public setMaximumHeight ( integer $maximumHeight ) : void | ||
$maximumHeight | integer | |
return | void |
public setMaximumWidth ( integer $maximumWidth ) : void | ||
$maximumWidth | integer | |
return | void |
public setMinimumHeight ( integer $minimumHeight ) : void | ||
$minimumHeight | integer | |
return | void |
public setMinimumWidth ( integer $minimumWidth ) : void | ||
$minimumWidth | integer | |
return | void |
public setRatioMode ( string $ratioMode ) : void | ||
$ratioMode | string | One of the \Neos\Media\Domain\Model\ImageInterface::RATIOMODE_* constants |
return | void |
protected string $ratioMode | ||
return | string |