class ThumbnailConfiguration (View source)

Thumbnail configuration value object

Properties

protected int $width
protected int $maximumWidth
protected int $height
protected int $maximumHeight
protected bool $allowCropping
protected bool $allowUpScaling
protected int $quality
protected bool $async
protected string $format
static protected bool $loggedDeprecation

Methods

__construct(int $width = null, int $maximumWidth = null, int $height = null, int $maximumHeight = null, bool $allowCropping = false, bool $allowUpScaling = false, bool $async = false, int $quality = null, string $format = null)

No description

int
getWidth()

No description

int
getMaximumWidth()

No description

int
getHeight()

No description

int
getMaximumHeight()

No description

bool
getRatioMode()

No description

bool
isCroppingAllowed()

No description

bool
isUpScalingAllowed()

No description

bool
isAsync()

No description

string
getHash()

No description

int
getQuality()

No description

string|null
getFormat()

No description

array
toArray()

No description

Details

__construct(int $width = null, int $maximumWidth = null, int $height = null, int $maximumHeight = null, bool $allowCropping = false, bool $allowUpScaling = false, bool $async = false, int $quality = null, string $format = null)

No description

Parameters

int $width

Desired width of the image

int $maximumWidth

Desired maximum width of the image

int $height

Desired height of the image

int $maximumHeight

Desired maximum height of the image

bool $allowCropping

Whether the image should be cropped if the given sizes would hurt the aspect ratio

bool $allowUpScaling

Whether the resulting image size might exceed the size of the original image

bool $async

Whether the thumbnail can be generated asynchronously

int $quality

Quality of the processed image

string $format

Format for the image, only jpg, jpeg, gif, png, wbmp, xbm, webp, avif and bmp are supported.

int getWidth()

No description

Return Value

int

int getMaximumWidth()

No description

Return Value

int

int getHeight()

No description

Return Value

int

int getMaximumHeight()

No description

Return Value

int

bool getRatioMode()

No description

Return Value

bool

bool isCroppingAllowed()

No description

Return Value

bool

bool isUpScalingAllowed()

No description

Return Value

bool

bool isAsync()

No description

Return Value

bool

string getHash()

No description

Return Value

string

int getQuality()

No description

Return Value

int

string|null getFormat()

No description

Return Value

string|null

array toArray()

No description

Return Value

array