Imagick
extends AbstractFilter
in package
Filter class for Imagick
Tags
Table of Contents
Properties
- $image : mixed
- Image object
Methods
- __construct() : mixed
- Constructor
- adaptiveBlur() : Imagick
- Blur the image.
- blur() : Imagick
- Blur the image.
- diffuse() : Imagick
- Apply a diffusion effect to the image
- gaussianBlur() : Imagick
- Blur the image.
- getImage() : AbstractAdapter|null
- Get the image object
- hasImage() : bool
- Has the image object
- motionBlur() : Imagick
- Blur the image.
- negate() : Imagick
- Create a negative of the image
- noise() : Imagick
- Apply a noise effect to the image
- paint() : Imagick
- Apply an oil paint effect to the image using the pixel radius threshold
- pencil() : Imagick
- Apply a pencil/sketch effect to the image
- pixelate() : Imagick
- Apply a mosaic pixelate effect to the image
- posterize() : Imagick
- Apply a posterize effect to the image
- setImage() : AbstractEditObject
- Set the image object
- sharpen() : Imagick
- Sharpen the image
- skew() : Imagick
- Apply a skew effect to the image
- swirl() : Imagick
- Apply a swirl effect to the image
- wave() : Imagick
- Apply a wave effect to the image
Properties
$image
Image object
protected
mixed
$image
= null
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
adaptiveBlur()
Blur the image.
public
adaptiveBlur([mixed $radius = 0 ][, mixed $sigma = 0 ][, int $channel = Imagick::CHANNEL_DEFAULT ]) : Imagick
Parameters
- $radius : mixed = 0
- $sigma : mixed = 0
- $channel : int = Imagick::CHANNEL_DEFAULT
Return values
Imagickblur()
Blur the image.
public
blur([mixed $radius = 0 ][, mixed $sigma = 0 ][, int $channel = Imagick::CHANNEL_ALL ]) : Imagick
Parameters
- $radius : mixed = 0
- $sigma : mixed = 0
- $channel : int = Imagick::CHANNEL_ALL
Return values
Imagickdiffuse()
Apply a diffusion effect to the image
public
diffuse(int $radius) : Imagick
Parameters
- $radius : int
Return values
ImagickgaussianBlur()
Blur the image.
public
gaussianBlur([mixed $radius = 0 ][, mixed $sigma = 0 ][, int $channel = Imagick::CHANNEL_ALL ]) : Imagick
Parameters
- $radius : mixed = 0
- $sigma : mixed = 0
- $channel : int = Imagick::CHANNEL_ALL
Return values
ImagickgetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolmotionBlur()
Blur the image.
public
motionBlur([mixed $radius = 0 ][, mixed $sigma = 0 ][, int $angle = 0 ][, int $channel = Imagick::CHANNEL_DEFAULT ]) : Imagick
Parameters
- $radius : mixed = 0
- $sigma : mixed = 0
- $angle : int = 0
- $channel : int = Imagick::CHANNEL_DEFAULT
Return values
Imagicknegate()
Create a negative of the image
public
negate() : Imagick
Return values
Imagicknoise()
Apply a noise effect to the image
public
noise([int $type = Imagick::NOISE_MULTIPLICATIVEGAUSSIAN ][, int $channel = Imagick::CHANNEL_DEFAULT ]) : Imagick
Parameters
- $type : int = Imagick::NOISE_MULTIPLICATIVEGAUSSIAN
- $channel : int = Imagick::CHANNEL_DEFAULT
Return values
Imagickpaint()
Apply an oil paint effect to the image using the pixel radius threshold
public
paint(int $radius) : Imagick
Parameters
- $radius : int
Return values
Imagickpencil()
Apply a pencil/sketch effect to the image
public
pencil(mixed $radius, mixed $sigma, mixed $angle) : Imagick
Parameters
- $radius : mixed
- $sigma : mixed
- $angle : mixed
Return values
Imagickpixelate()
Apply a mosaic pixelate effect to the image
public
pixelate(int $w[, int|null $h = null ]) : Imagick
Parameters
- $w : int
- $h : int|null = null
Return values
Imagickposterize()
Apply a posterize effect to the image
public
posterize(int $levels[, bool $dither = false ]) : Imagick
Parameters
- $levels : int
- $dither : bool = false
Return values
ImagicksetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsharpen()
Sharpen the image
public
sharpen([mixed $radius = 0 ][, mixed $sigma = 0 ][, int $channel = Imagick::CHANNEL_ALL ]) : Imagick
Parameters
- $radius : mixed = 0
- $sigma : mixed = 0
- $channel : int = Imagick::CHANNEL_ALL
Return values
Imagickskew()
Apply a skew effect to the image
public
skew(int $x, int $y[, ColorInterface|null $color = null ]) : Imagick
Parameters
- $x : int
- $y : int
- $color : ColorInterface|null = null
Return values
Imagickswirl()
Apply a swirl effect to the image
public
swirl(int $degrees) : Imagick
Parameters
- $degrees : int
Return values
Imagickwave()
Apply a wave effect to the image
public
wave(mixed $amp, mixed $length) : Imagick
Parameters
- $amp : mixed
- $length : mixed