class QualityImageAdjustment extends AbstractImageAdjustment (View source)

An adjustment for quality of an image

Properties

protected int $position
protected ImageVariant $imageVariant from  AbstractImageAdjustment
protected int $quality

Methods

__construct(array $options = [])

Constructs this adjustment

void
setImageVariant(ImageVariant $imageVariant)

Sets the image variant this adjustment belongs to

int
getPosition()

No description

setPosition(int $position)

No description

int|null
getQuality()

Returns quality

void
setQuality(int $quality = null)

Sets quality

ImageInterface
applyToImage(ImageInterface $image)

Applies this adjustment to the given Imagine Image object

bool
canBeApplied(ImageInterface $image)

Check if this Adjustment can or should be applied to its ImageVariant.

Details

__construct(array $options = [])

Constructs this adjustment

Parameters

array $options

configuration options - depends on the actual adjustment

Exceptions

InvalidArgumentException

void setImageVariant(ImageVariant $imageVariant)

Sets the image variant this adjustment belongs to

Parameters

ImageVariant $imageVariant

Return Value

void

int getPosition()

No description

Return Value

int

setPosition(int $position)

No description

Parameters

int $position

int|null getQuality()

Returns quality

Return Value

int|null

void setQuality(int $quality = null)

Sets quality

Parameters

int $quality

Return Value

void

ImageInterface applyToImage(ImageInterface $image)

Applies this adjustment to the given Imagine Image object

Parameters

ImageInterface $image

Return Value

ImageInterface

bool canBeApplied(ImageInterface $image)

Check if this Adjustment can or should be applied to its ImageVariant.

Parameters

ImageInterface $image

Return Value

bool