HumHub Documentation (unofficial)

Effects
in package
implements EffectsInterface, InfoProvider

Effects implementation using the Imagick PHP extension.

Table of Contents

Interfaces

EffectsInterface
Interface for the effects.
InfoProvider
Interface implemented by classes that provide info about a graphics driver.

Properties

$imagick  : Imagick

Methods

__construct()  : mixed
Initialize the instance.
blur()  : $this
Blur the image.
brightness()  : $this
Changes the brightness of the image.
colorize()  : $this
Colorize the image.
convolve()  : $this
Convolves the image.
gamma()  : $this
Apply gamma correction.
getDriverInfo()  : Info|null
Get the info about this driver.
grayscale()  : $this
Grayscale the image.
negative()  : $this
Invert the colors of the image.
sharpen()  : $this
Sharpens the image.

Properties

Methods

__construct()

Initialize the instance.

public __construct(Imagick $imagick) : mixed
Parameters
$imagick : Imagick

brightness()

Changes the brightness of the image.

public brightness(mixed $brightness) : $this
Parameters
$brightness : mixed

The level of brightness (-100 (black) to 100 (white))

Tags
see
EffectsInterface::brightness()
Return values
$this

getDriverInfo()

Get the info about this driver.

public static getDriverInfo([mixed $required = true ]) : Info|null
Parameters
$required : mixed = true

when the driver is not available: if FALSE the function returns NULL, if TRUE the driver throws a \Imagine\Exception\NotSupportedException

Tags
see
InfoProvider::getDriverInfo()
since
1.3.0
Return values
Info|null

        
On this page

Search results