Class

Imagine\Imagick\Effects

class Effects implements EffectsInterface

Effects implementation using the Imagick PHP extension

Methods

__construct(Imagick $imagick)

EffectsInterface gamma(float $correction)

Apply gamma correction

EffectsInterface negative()

Invert the colors of the image

EffectsInterface grayscale()

Grayscale the image

EffectsInterface colorize(ColorInterface $color)

Colorize the image

EffectsInterface sharpen()

Sharpens the image

EffectsInterface blur(float|int $sigma = 1)

Blur the image

Details

at line 25
public __construct(Imagick $imagick)

Parameters

Imagick $imagick

at line 33
public EffectsInterface gamma(float $correction)

Apply gamma correction

Parameters

float $correction

Return Value

EffectsInterface

Exceptions

RuntimeException

at line 47
public EffectsInterface negative()

Invert the colors of the image

Return Value

EffectsInterface

Exceptions

RuntimeException

at line 61
public EffectsInterface grayscale()

Grayscale the image

Return Value

EffectsInterface

Exceptions

RuntimeException

at line 75
public EffectsInterface colorize(ColorInterface $color)

Colorize the image

Parameters

ColorInterface $color

Return Value

EffectsInterface

Exceptions

RuntimeException

at line 89
public EffectsInterface sharpen()

Sharpens the image

Return Value

EffectsInterface

Exceptions

RuntimeException

at line 103
public EffectsInterface blur(float|int $sigma = 1)

Blur the image

Parameters

float|int $sigma

Return Value

EffectsInterface

Exceptions

RuntimeException