Functions page: 13

Montage image
Creates a composite image by combining several separate images.
None



The images are tiled on the composite image with the name of the image optionally appearing just below the individual tile.
Morph images
Method morphs a set of images.
None



Both the image pixels and size are linearly interpolated to give the appearance of a meta-morphosis from one image to the next.
Mosaic images
Inlays an image sequence to form a single coherent picture.
None



It returns a wand with each image in the sequence composited at the location defined by the page offset of the image.
Motion blur image
Simulates motion blur.
Motion blur image example

bool motionBlurImage ( float $radius , float $sigma , float $angle [, int $channel = Imagick::CHANNEL_DEFAULT ] )

<?php 
$im 
= new Imagick($input);
$im->motionBlurImage1230);
$im->writeImage('motionBlurImage.jpg'); 
$im->destroy();
 
?>


We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlurImage() selects a suitable radius for you. Angle gives the angle of the blurring motion.
Negate image
Negates the colors in the reference image.
Negate image example

bool negateImage ( bool $gray [, int $channel = Imagick::CHANNEL_ALL ] )

<?php 
$im 
= new Imagick($input);
$im->negateImage(FALSE);
$im->writeImage('negateImage.jpg'); 
$im->destroy();
 
?>


The Grayscale option means that only grayscale values within the image are negated.
New image
Creates a new image and associates ImagickPixel value as background color
New image example

bool newImage ( int $cols , int $rows , mixed $background [, string $format ] )

<?php 
$im 
= new Imagick();
$im->newImage(200150, new ImagickPixel('red'));
$im->writeImage('newImage.jpg'); 
$im->destroy();
 
?>
Newpseudo image
Creates a new image using ImageMagick pseudo-formats.
Newpseudo image example

bool newPseudoImage ( int $columns , int $rows , string $pseudoString )

<?php 
$im 
= new Imagick();
$im->newPseudoImage(200150'radial-gradient:#000000-#ffffff');
$im->writeImage('newPseudoImage.jpg'); 
$im->destroy();
 
?>
Next image
Associates the next image in the image list with an Imagick object.
None

Normalize image
Enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available.
Normalize image example

bool normalizeImage ([ int $channel = Imagick::CHANNEL_ALL ] )

<?php 
$im 
= new Imagick($input);
$im->normalizeImage();
$im->writeImage('normalizeImage.jpg'); 
$im->destroy();
 
?>
Oil paint image
Applies a special effect filter that simulates an oil painting.
Oil paint image example

bool oilPaintImage ( float $radius )

<?php 
$im 
= new Imagick($input);
$im->oilPaintImage);
$im->writeImage('oilPaintImage.jpg'); 
$im->destroy();
 
?>


Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.
Opaque paint image
Changes any pixel that matches color with the color defined by fill.
Opaque paint image example

bool opaquePaintImage ( mixed $target , mixed $fill , float $fuzz , bool $invert [, int $channel = Imagick::CHANNEL_DEFAULT ] )

<?php 
$im 
= new Imagick($input);
$im->opaquePaintImage'#850d17'Blue20FALSE );
$im->writeImage('opaquePaintImage.jpg'); 
$im->destroy();
 
?>


Not working as expected
Optimize image layers
Compares each image the GIF disposed forms of the previous image in the sequence.
None



From this it attempts to select the smallest cropped image to replace each frame, while preserving the results of the animation.
Ordered posterize image
Performs an ordered dither based on a number of pre-defined dithering threshold maps.
None



But over multiple intensity levels, which can be different for different channels, according to the input arguments.
Paint floodfill image
Changes the color value of any pixel that matches target and is an immediate neighbor.
None



As of ImageMagick 6.3.8 this method has been deprecated and floodfillPaintImage() should be used instead.
Paint opaque image
Changes any pixel that matches color with the color defined by fill.
Paint opaque image example

bool paintOpaqueImage ( mixed $target , mixed $fill , float $fuzz [, int $channel = Imagick::CHANNEL_ALL ] )

<?php 
$im 
= new Imagick($input);
$im->paintOpaqueImage'Red''Orange'15 );
$im->writeImage('paintOpaqueImage.jpg'); 
$im->destroy();
 
?>


NOT WORKING