Method |
Description |
|
__construct ( string $img, integer | string $w = null, integer | string $h = null, Pop\Color\Space\ColorInterface $color = null, array $types = null ) : Imagick |
Constructor |
|
__destruct ( ) : void |
Destructor to destroy the image resource |
|
__toString ( ) : string |
To string method to output the image |
|
blur ( integer $radius, integer $sigma, integer $angle, integer $type = Imagick::BLUR ) : Imagick |
Method to blur the image. |
|
border ( integer $w, integer $h = null, integer $type = Imagick::INNER_BORDER ) : Imagick |
Method to add a border to the image. |
|
brightness ( integer $b ) : Imagick |
Method to adjust the brightness of the image. |
|
colorTotal ( ) : integer |
Return the number of colors in the palette of indexed images. |
|
colorize ( Pop\Color\Space\ColorInterface $color ) : Imagick |
Method to colorize the image with the color passed. |
|
contrast ( integer $amount ) : Imagick |
Method to adjust the contrast of the image. |
|
convert ( string $type ) : Imagick |
Convert the image object to the new specified image type. |
|
crop ( integer | string $wid, integer | string $hgt, integer | string $x, integer | string $y ) : mixed |
Crop the image object to a image |
|
cropThumb ( integer | string $px, integer | string $x, integer | string $y ) : Imagick |
Crop the image object to a square image |
|
desaturate ( ) : Imagick |
Method to desaturate of the image. |
|
destroy ( boolean $file = false ) : void |
Destroy the image object and the related image file directly. |
|
diffuse ( integer $radius ) : Imagick |
Apply a diffusion effect to the image |
|
drawArc ( integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null ) : Imagick |
Method to add an arc to the image. |
|
drawCircle ( integer $x, integer $y, integer $w ) : Imagick |
Method to add a circle to the image. |
|
drawEllipse ( integer $x, integer $y, integer $w, integer $h = null ) : Imagick |
Method to add an ellipse to the image. |
|
drawLine ( integer $x1, integer $y1, integer $x2, integer $y2 ) : Imagick |
Method to add a line to the image. |
|
drawPolygon ( array $points ) : Imagick |
Method to add a polygon to the image. |
|
drawRectangle ( integer $x, integer $y, integer $w, integer $h = null ) : Imagick |
Method to add a rectangle to the image. |
|
drawSquare ( integer $x, integer $y, integer $w ) : Imagick |
Method to add a square to the image. |
|
flatten ( ) : Imagick |
Flatten the image layers |
|
flip ( ) : Imagick |
Method to flip the image over the x-axis. |
|
flop ( ) : Imagick |
Method to flip the image over the y-axis. |
|
formats ( ) : array |
Get formats |
|
getColors ( integer | string $format = Pop\Image\Imagick::HEX ) : array |
Return all of the colors in the palette in an array format |
|
getFormats ( ) : array |
Get the array of supported formats of Imagick. |
|
getNumberOfFormats ( ) : integer |
Get the number of supported formats of Imagick. |
|
hsb ( integer $h, integer $s, integer $b ) : Imagick |
Method to adjust the HSB of the image altogether. |
|
hue ( integer $h ) : Imagick |
Method to adjust the hue of the image. |
|
invert ( ) : Imagick |
Method to invert the image (create a negative.) |
|
isInstalled ( ) : boolean |
Check if Imagick is installed. |
|
level ( integer $black, float $gamma, integer $white ) : Imagick |
Method to adjust the levels of the image using a 0 - 255 range. |
|
noise ( integer $type = Imagick::NOISE_MULTIPLICATIVEGAUSSIAN ) : Imagick |
Apply a noise effect to the image |
|
output ( boolean $download = false ) : Imagick |
Output the image object directly. |
|
overlay ( string $ovr, integer | string $x, integer | string $y ) : Imagick |
Overlay an image onto the current image. |
|
paint ( integer $radius ) : Imagick |
Apply an oil paint effect to the image using the pixel radius threshold |
|
pencil ( integer $radius, integer $sigma, integer $angle ) : Imagick |
Apply a pencil/sketch effect to the image |
|
pixelate ( integer $w, integer $h = null ) : Imagick |
Apply a mosiac pixelate effect to the image |
|
posterize ( integer $levels, boolean $dither = false ) : Imagick |
Apply a posterize effect to the image |
|
resize ( integer | string $px ) : Imagick |
Resize the image object to the largest dimension |
|
resizeToHeight ( integer | string $hgt ) : mixed |
Resize the image object to the height parameter passed. |
|
resizeToWidth ( integer | string $wid ) : mixed |
Resize the image object to the width parameter passed. |
|
resource ( ) : Imagick |
Get the image resource to directly interact with it |
|
rotate ( integer | string $deg ) : Imagick |
Rotate the image object, using simple degrees, i.e. -90,
to rotate the image. |
|
saturation ( integer $s ) : Imagick |
Method to adjust the saturation of the image. |
|
save ( string $to = null, boolean $append = false ) : Imagick |
Save the image object to disk. |
|
scale ( float | string $scl ) : Imagick |
Scale the image object |
|
setBlur ( integer | string $blur = null ) : Imagick |
Set the image blur. |
|
setCompression ( integer $comp = null ) : Imagick |
Set the image compression quality with an
Imagick compression constant |
|
setFilter ( integer | string $filter = null ) : Imagick |
Set the image filter. |
|
setFormats ( ) : Imagick |
Set the current object formats to include the supported formats of Imagick. |
|
setOpacity ( float $opac ) : Imagick |
Set the opacity. |
|
setOverlay ( integer | string $ovr = null ) : Imagick |
Set the image overlay. |
|
setQuality ( integer $q = null ) : Imagick |
Set the image quality. |
|
sharpen ( integer $radius, integer $sigma ) : Imagick |
Method to sharpen the image. |
|
skew ( Pop\Color\Space\ColorInterface $color, integer $x, integer $y ) : Imagick |
Apply a skew effect to the image |
|
swirl ( integer $degrees ) : Imagick |
Apply a swirl effect to the image |
|
text ( string $str, integer | string $size, integer | string $x, integer | string $y, string $font = null, integer | string $rotate = null, boolean $stroke = false ) : Imagick |
Create text within the an image object |
|
wave ( integer $amp, integer $length ) : Imagick |
Apply a wave effect to the image |
|