These examples are all generated using ImageMagick 6.5.6 Q16.

http://www.imagemagick.org/script/command-line-options.php


The original unmodified image
Adaptive blur
<?php 
$cmd 
"$input -adaptive-blur 0x2 ";
exec("convert $cmd adaptive-blur.jpg"); 
?>

Adaptively blur pixels, with decreasing effect near edges.
Adaptive resize
<?php 
$cmd 
"$input -adaptive-resize 133x100 ";
exec("convert $cmd adaptive-resize.jpg"); 
?>

Resize the image using data-dependent triangulation.
Adaptive sharpen
<?php 
$cmd 
"$input -adaptive-sharpen 5x0.5 ";
exec("convert $cmd adaptive-sharpen.jpg");
?>

Adaptively sharpen pixels, with increasing effect near edges.
AdjoinJoin images into a single multi-image file.
affine
<?php 
$cmd 
"$input -virtual-pixel white -distort affine '216,161 329,67 0,200 80,200' ";
exec("convert $cmd affine.jpg");
?>

Set the drawing transformation matrix for combined rotating and scaling.
Alpha
<?php 
$cmd 
"boots.png -alpha off";
exec("convert $cmd alpha.png");
?>

Gives control of the alpha/matte channel of an image.
Annotate
<?php 
$cmd 
"$input -fill black -pointsize 40".
" -gravity center -annotate +0+0 \"Annotate\"".
" -fill white -annotate +2+2 \"Annotate\"";
exec("convert $cmd annotate.jpg"); 
?>

Annotate an image with text - no options
Annotate
<?php 
$cmd 
"$input -fill white -pointsize 40 -gravity center ".
" -annotate -45 \"Angle annotate\"";
exec("convert $cmd annotate_angle.jpg"); 
?>

Annotate an image with text - angle option
Antialias
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -antialias ".
"-stroke black -strokewidth 5 ".
"-draw \"line 66,50 200,150 \" ";
exec("convert $cmd antialias_on.jpg");    
?>

Enable/Disable of the rendering of anti-aliasing pixels when drawing fonts and lines. on - default and so -antialias does not need to be specified.
Antialias
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite +antialias -stroke black".
" -strokewidth 5 -draw \"line 66,50 200,150 \" ";
exec("convert $cmd antialias_off.jpg");   
?>

Enable/Disable of the rendering of anti-aliasing pixels when drawing fonts and lines. off.
Append
<?php 
$cmd 
"$input $input -append";
exec("convert $cmd append_vert.jpg"); 
?>

Join current images vertically or horizontally. - now one image consisting of the two original images.
Append
<?php 
$cmd 
"$input $input +append";
exec("convert $cmd append_horiz.jpg"); 
?>

Join current images vertically or horizontally. - now one image consisting of the two original images.
Attenuate
<?php 
$cmd 
"$input -attenuate 4 +noise Impulse";
exec("convert $cmd attenuate.jpg");  
?>

Lessen (or intensify) when adding noise to an image.
Authenticate
<?php 
$cmd 
"input.pdf -authenticate passwd";
exec("convert $cmd authenticate.jpg"); 
?>

Decrypt a PDF with a password.
Auto-gamma
<?php 
$cmd 
"$input -auto-gamma";
exec("convert $cmd auto_gamma.jpg");  
?>

Automagically adjust gamma level of image.
Auto-level
<?php 
$cmd 
"$input -auto-level";
exec("convert $cmd auto_level.jpg");  
?>

Automagically adjust color levels of image.
Auto-orient
<?php 
$cmd 
"$input -auto-orient";
exec("convert $cmd auto_orient.jpg");  
?>

Automagically orient (rotate) an image created by a digital camera.
Average
<?php 
$cmd 
"$input adaptive-blur.jpg adaptive-sharpen.jpg auto_gamma.jpg -average";
exec("convert $cmd average.jpg");  
?>

Average a set of images.
Backdrop.Display the image centered on a backdrop.
Background
<?php 
$cmd 
"$input -background NavajoWhite ".
"-shear 15x15";
exec("convert $cmd shear.jpg");     
?>

Background sets the canvas colour and will be exposed when using other operators like rotate and shear. You can have a background of none which is transparent but the image must be saved as a gif or png.
Array ( [0] => Performance: 3i 0.158932ips
24.835u 0:19 )
Bench
<?php 
$cmd 
"logo: -resize 1000% -bench 3 ";
exec("convert $cmd biglogo.png 2>&1",  $output);
print_r($output);
?>

Measure performance.
BiasAdd bias when convolving an image.
Blackpoint-compensationUse blackpoint compensation.
Black threshold
<?php 
$cmd 
"$input -black-threshold 1000"
exec("convert $cmd black_threshold.jpg");   
?>

Force to black all pixels below the threshold while leaving all pixels at or above the threshold unchanged. - NO EFFECT
Blend
<?php 
$cmd 
"-size 266x200 xc:blue miff:- ".
"| composite $input +swap -blend 70 - ";
exec("convert $cmd blend.jpg"); 
?>

Blend an image into another by the given percent.
Blue-primarySet the blue chromaticity primary point.
Blue-shift
<?php 
$cmd 
"$input -blue-shift 1.5 ";
exec("convert $cmd blue-shift.jpg"); 
?>

Simulate a scene at nighttime in the moonlight. Start with a factor of 1.5
Blur
<?php 
$cmd 
"$input -blur 15";
exec("convert $cmd blur_simple.jpg");   
?>

Reduce image noise and reduce detail levels.
Blur
<?php 
$cmd 
"$input -blur 0x3";
exec("convert $cmd blur.jpg");   
?>

Reduce image noise and reduce detail levels.
Border
<?php 
$cmd 
"$input -bordercolor NavajoWhite ".
"-border 10x10";
exec("convert $cmd border.jpg");  
?>

Surround the image with a border of color. - the border increases the size of the image by 2 x the width of the border. The top and bottom border size can be different to the left and right.
Border color
<?php 
$cmd 
"$input -bordercolor Orange -border 10x5";
exec("convert $cmd bordercolor.jpg"); 
?>

Set the border color.
Borderwidth Set the border width.
Depreciated - see -limit
Caption
<?php 
$cmd 
"-size 266x120 -background NavajoWhite ".
"-fill white -gravity center caption:\"Caption\" ";
exec("convert $cmd caption.jpg");  
?>

Assign a caption to an image. - the font size is automaticaly sellected to fit the width.
Caption
<?php 
$size 
getimagesize$input );
$cmd $input ( -size {$size[0]}x30".
" -background black -fill white".
" -pointsize 16 -gravity center".
" caption:\"Caption\" -flatten ) -append ";
exec("convert $cmd caption_size.jpg"); 
?>

Assign a caption to an image.- font size defined.
cdlColor correct with a color decision list.
Channel
<?php 
$cmd 
"$input -channel RB -fx 0 ";
exec("convert $cmd channel.jpg"); 
?>

Specify those image color channels to which subsequent operators are limited. - in this case setting red and blue channels to zero
Charcol
<?php 
$cmd 
"$input -charcoal 1 ";
exec("convert $cmd charcoal.jpg");  
?>

Simulate a charcoal drawing.
Chop
<?php 
$cmd 
"$input -gravity center -chop 20x20 ";
exec("convert $cmd chop.jpg");   
?>

Remove pixels from the interior of an image. The image size is reduced by the amount of pixels removed from the image.
clampRestrict image colors from 0 to the quantum depth.
ClipApply the clipping path if one is present.
Clip maskClip the image as defined by this mask.
Clip pathClip along a named path from the 8BImageMagick profile.
Clone
<?php 
$cmd 
"$input ( +clone -thumbnail x480 -write 480_wide.jpg".
" +delete ) -thumbnail \"64x64!\" ";
exec("convert $cmd clone.jpg");   
?>

Make a copy of an image (or images).
Clut
<?php 
$cmd 
"texture_plaster.bmp morph/gradient.png".
" -clut"
exec("convert $cmd clut.jpg");   
?>

Replace the channel values in the first image using each corresponding channel in the second image as a color lookup table.
CoalesceFully define the look of each frame of an GIF animation sequence, to form a 'film strip' animation.
Colorize
<?php 
$cmd 
"$input -fill Blue -colorize 30 ";
exec("convert $cmd colorize.jpg");    
?>

Colorize the image by an amount specified by value using the color specified by the most recent -fill setting.
ColormapDefine the colormap type.
Colors
<?php 
$cmd 
"$input -colors 10 ";
exec("convert $cmd colors.jpg");   
?>

Set the preferred number of colors in the image.
Colorspace
<?php 
$cmd 
"$input -thumbnail 200x -colorspace gray";
exec("convert $cmd colorspace.jpg");     
?>

Set the image colorspace.
Combine
<?php 
$cmd 
" separate-0.png separate-1.png separate-2.png";
" -channel RGB -combine ";
exec ("convert $cmd combine.png");    
?>

Combine one or more images into a single image.
Comment
<?php 
$cmd 
"$input -comment \"Comment imbeded in image\" ";
exec("convert $cmd comment.jpg");     
?>

Embed a comment in an image. - HOW TO PROVE ?
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose clear";
exec("composite $cmd compose_clear.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose src";
exec("composite $cmd compose_src.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose dst";
exec("composite $cmd compose_dst.jpg"); 
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose src-over";
exec("composite $cmd compose_src_over.jpg");  
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose dst-over";
exec("composite $cmd compose_dst_over.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center -compose src-in";
exec("composite $cmd compose_src_in.png");  
?>

Set the type of image composition.
Compose
<?php 
// Create the round mask
exec("convert -size 266x200 xc:none -fill black".
" -draw \"circle 140,100 140,30\" mask.png");
// cut the mask shape out of the image
$cmd "-compose dst-in mask.png $input -matte ";
exec("composite $cmd compose_dst_in.png"); 
// Delete the mask
unlink("mask.png");
?>

Set the type of image composition. Image displayed on a grey checkerboard to show the transparent areas.
Compose
<?php 
// Create the round mask
exec("convert -size 266x200 xc:none -fill black".
" -draw \"circle 140,100 140,30\" mask.png");
// cut the mask shape out of the image
$cmd "-compose src-out mask.png $input -matte";
exec("composite $cmd compose_src_out.png");
// Delete the mask
unlink("mask.png");   
?>

Set the type of image composition. Image displayed on a grey checkerboard to show the transparent areas.
Compose
<?php 
// Create the round mask
exec("convert -size 266x200 xc:none -fill black".
" -draw \"circle 140,100 140,30\" mask.png");
// cut the mask shape out of the image
$cmd "-compose dst-out mask.png $input -matte";
exec("composite $cmd compose_dst_out.png"); 
// Delete the mask
unlink("mask.png");
?>

Set the type of image composition. Image displayed on a grey checkerboard to show the transparent areas.
Compose
<?php 
$cmd 
"boots.png $input -gravity center ".
"-compose src-atop";
exec("composite $cmd compose_src_atop.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center ".
"-compose dst-atop";
exec("composite $cmd compose_dst_atop.png");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"boots.png $input -gravity center ".
"-compose xor";
exec("composite $cmd compose_xor.png");     
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose color-burn";
exec("composite $cmd compose_color-burn.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose multiply";
exec("composite $cmd compose_multiply.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose screen";
exec("composite $cmd compose_screen.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose plus";
exec("composite $cmd compose_plus.jpg"); 
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose add";
exec("composite $cmd compose_add.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose minus";
exec("composite $cmd compose_minus.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose subtract";
exec("composite $cmd compose_subtract.jpg"); 
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose difference";
exec("composite $cmd compose_difference.jpg");  
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose difference";
exec("composite $cmd compose_exclusion.jpg");  
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose darken";
exec("composite $cmd compose_darken.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose lighten";
exec("composite $cmd compose_lighten.jpg");     
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose linear-dodge";
exec("composite $cmd compose_linear_dodge.jpg"); 
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose linear-burn";
exec("composite $cmd compose_linear_burn.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose color-dodge";
exec("composite $cmd compose_color_dodge.jpg");    
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose hard-light";
exec("composite $cmd compose_hard_light.jpg");     
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose linear-light";
exec("composite $cmd compose_linear_light.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose soft-light";
exec("composite $cmd compose_soft_light.jpg");   
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose pegtop-light";
exec("composite $cmd compose_pegtop_light.jpg");  
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose vivid-light";
exec("composite $cmd compose_vivid_light.jpg");
?>

Set the type of image composition.
Compose
<?php 
$cmd 
"texture_plaster.gif $input -tile ".
"-compose pin-light";
exec("composite $cmd compose_pin_light.jpg");    
?>

Set the type of image composition.
Composite
<?php 
$cmd 
"$input boots.png -composite ";
exec("convert $cmd composite.jpg");  
?>

Perform alpha composition on the current image sequence.
Compress
<?php 
$cmd 
"$input -compress JPEG ";
exec("convert $cmd compress.jpg");  
?>

Use pixel compression specified by type when writing the image.
Contrast
<?php 
$cmd 
"$input -contrast";
exec("convert $cmd contrast.jpg"); 
?>

Enhance or reduce the image contrast.
Contrast stretch
<?php 
$cmd 
"$input -contrast-stretch \"2%\" ";
exec("convert $cmd contrast-stretch.jpg");  
?>

Increase the contrast in an image by stretching the range of intensity values.
Convolve
<?php 
$cmd 
"$input -morphology convolve Blur:0x4  ";
exec("convert $cmd convolve.jpg");  
?>

Convolve an image with a user-supplied convolution kernel.
Crop
<?php 
$cmd 
"$input -crop 133x140+80+25";
exec("convert $cmd crop.jpg");   
?>

Cut out one or more rectangular regions of the image.
Cycle
<?php 
$cmd 
"$input -cycle 20";
exec("convert $cmd cycle.jpg");   
?>

Displace image colormap by amount.
Array
(
[0] =>
2009-06-06T19:52:00+01:00 0:01
0.000u 6.5.1 Configure convert[3624]:
utility.c/ExpandFilenames/826/Configure
[1] =>
Command line: convert {-debug} {all}
{output.png} {output.jpg}
Debug <?php 
$array 
= array();
echo 
"<pre>";
exec("convert -debug all output.png output.jpg 2>&1"$array); 
echo 
"<br>".print_r($array)."<br>"
echo 
"</pre>";
?>

Enable debug printout.
Decipher
<?php 
$cmd 
"encipher.png -decipher passkey.txt ";
exec("convert $cmd decipher.png"); 
?>

Decipher and restore pixels that were previously transformed by -encipher.
Deconstruct
<?php 
$cmd 
$input composite.jpg -deconstruct";
exec ("convert $cmd ");
?>

Find areas that has changed between images - DOING SOMETHING WRONG
-defineAdd coder/decoder specific options.
Delay
<?php 
$cmd 
"-size 100x100 xc:none -stroke green ".
"-strokewidth 3 -fill none -draw \"circle 50,50 50,10 \" ";
exec("convert $cmd ball.gif"); 

$cmd " -dispose previous -delay 50".
" -size 266x200 xc:none".
" -page +0+0 ball.gif -page +10+15 ball.gif".
" -page +20+30 ball.gif -page +30+45 ball.gif".
" -page +40+60 ball.gif -page +50+75 ball.gif".
" -page +60+90 ball.gif -page +70+75 ball.gif".
" -page +80+60 ball.gif -page +90+45 ball.gif".
" -page +100+30 ball.gif -page +110+15 ball.gif".
" -page +120+0 ball.gif -loop 0";
exec("convert $cmd delay.gif");       
?>

Display the next image after pausing.
-deleteDelete the image, specified by its index, from the image sequence.
Density
<?php 
$cmd 
"$input -density 200x200";
exec("convert $cmd density.jpg");  
?>

Set the horizontal and vertical resolution of an image for rendering to devices.
-depthDepth of the image.
-descendObtain image by descending window hierarchy.
-deskewStraighten an image. A threshold of 40% works for most images.
-despeckleReduce the speckles within an image.
-displaceShift image pixels as defined by a displacement map.
-displaySpecifies the X server to contact.
Dispose
<?php 
$cmd 
"-size 100x100 xc:none -stroke brown ".
"-strokewidth 3 -fill none ".
"-draw \"circle 50,50 50,10 \" ";
exec("convert $cmd ball.gif");  

$cmd " -dispose none -delay 50 -size 266x200 ".
" xc:none".
" -page +0+0 ball.gif -page +10+15 ball.gif".
" -page +20+30 ball.gif -page +30+45 ball.gif".
" -page +40+60 ball.gif -page +50+75 ball.gif".
" -page +60+90 ball.gif -page +70+75 ball.gif".
" -page +80+60 ball.gif -page +90+45 ball.gif".
" -page +100+30 ball.gif -page +110+15 ball.gif".
" -page +120+0 ball.gif -loop 0";
exec("convert $cmd dispose.gif");     
?>

Define the GIF disposal image setting for images that are being created or read in.
-dissimilarity-thresholdMaximum RMSE for subimage match (default 0.2).
-dissolveDissolve an image into another by the given percent.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent -distort arc 180";
exec("convert $cmd distort_arc.png");
?>

Distort an image, using the given method and its required arguments. Image displayed on a grey checkerboard to show the transparent areas.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent".
" -distort barrel \"0.2 0.2 0.2 1.0 \" -trim";
exec("convert $cmd distort_barrel.png");    
?>

Distort an image, using the given method and its required arguments. Barrel.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent".
" -distort BarrelInverse \"0.2 0.2 0.2 1.0 \" -trim";
exec("convert $cmd distort_barrelInverse.png"); 
?>

Distort an image, using the given method and its required arguments. -THIS IS NOT THE CORRECT EFFECT Image displayed on a grey checkerboard to show the transparent areas.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent".
" -distort Perspective \"0,0 0,0 0,200 0,200".
"266,200 266,180 266,0 266,20 \" ";
exec("convert $cmd distort_perspective.png"); 
?>

Distort an image, using the given method and its required arguments. Image displayed on a grey checkerboard to show the transparent areas.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent".
" -distort polar \"100,20 133,100 180,270\" ";
exec("convert $cmd distort_polar.png"); 
?>

Distort an image, using the given method and its required arguments. Image displayed on a grey checkerboard to show the transparent areas.
Distort
<?php 
$cmd 
"$input -matte -virtual-pixel transparent".
" -distort Shepards \"0,0 0,0  0,100 20,100 0,200".
" 0,200 133,200 133,180 266,200 266,200 266,100".
" 246,100 266,0 266,0 133,0 133,20\" ";
exec("convert $cmd distort_shepards.png");  
?>

Distort an image, using the given method and its required arguments. Image displayed on a grey checkerboard to show the transparent areas.
-ditherApply a Riemersma or Floyd-Steinberg error diffusion dither to images when general color reduction is applied via an option, or automagically when saving to specific formats. This enabled by default.
Draw arc
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -stroke black ".
"-strokewidth 1 -fill none -draw \"arc 66,50 200,150 0,135 \" ";
exec("convert $cmd draw_arc.jpg");   
?>

Annotate an image with one or more graphic primitives.
Draw circle
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -stroke black ".
"-strokewidth 1 -fill none -draw \"circle 133,100 133,10 \" ";
exec("convert $cmd draw_circle.jpg"); 
?>

Annotate an image with one or more graphic primitives. - using -fill none draws the outline only. You can use -linewidth as well as -strokewidth.
Draw line
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -stroke black ".
"-strokewidth 1 -fill none -draw \"line 66,50 200,150 \" ";
exec("convert $cmd draw_line.jpg");   
?>

Annotate an image with one or more graphic primitives.
Draw rectangle
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -stroke black ".
"-strokewidth 1 -fill none -draw \"rectangle 66,50 200,150 \" ";
exec("convert $cmd draw_rectangle.jpg");    
?>

Annotate an image with one or more graphic primitives.
Draw round rectangle
<?php 
$cmd 
"-size 266x200 xc:NavajoWhite -stroke black ".
"-strokewidth 1 -fill none ".
"-draw \"roundRectangle 66,50 200,150 10,10 \" ";
exec("convert $cmd draw_round_rectangle.jpg");     
?>

Annotate an image with one or more graphic primitives.
Draw text
<?php 
$cmd 
"$input -pointsize 40 -fill white ".
"-gravity south -draw \" text 0,0 'Draw text' \" ";
exec("convert $cmd draw_text.jpg"); 
?>

Annotate an image with one or more graphic primitives.
Edge
<?php 
$cmd 
"$input -edge 2 ";
exec("convert $cmd edge.jpg");  
?>

Detect edges within an image.
Emboss
<?php 
$cmd 
"$input -emboss 5 ";
exec("convert $cmd emboss.jpg"); 
?>

Emboss an image.
Encipher
<?php 
$cmd 
"$input -encipher passkey.txt ";
exec("convert $cmd encipher.png"); 
?>

Encipher pixels for later deciphering by -decipher. The key is in the text file or can be another image.
-encodingspecify the text encoding.
-endianSpecify endianness (MSB or LSB) of the image.
-enhanceApply a digital filter to enhance a noisy image.
Equalize
<?php 
$cmd 
"$input -equalize";
exec("convert $cmd equalize.jpg"); 
?>

Perform histogram equalization on the image channel-by-channel.
Evaluate
<?php 
$cmd 
"$input -matte -channel A -evaluate set 20% +channel";
exec("convert $cmd evaluate.jpg"); 
?>

Alter channel pixels by evaluating an arithmetic, relational, or logical expression. This example makes the image 20% transparent
Extent
<?php 
$cmd 
"$input -background NavajoWhite".
" -gravity center -extent 266x266 ";
exec("convert $cmd extent.jpg");   
?>

Set the image size and offset.
Extract
<?php 
$cmd 
"-size 266x200 -extract 100x100+50+50".
$input";
exec("convert $cmd extract.jpg");
?>

Extract the specified area from image.
-familySet a font family for text.
-fftImplements the forward discrete Fourier transform (DFT).
Fill
<?php 
$cmd 
"$input -fill blue -fuzz \"10%\"".
" -opaque \"#7b1216\" ";
exec("convert $cmd Fill.png");   
?>

Color to use when filling a graphic primitive.
Filter
<?php 
$cmd 
"$input -filter box -resize \"50%\" ";
exec("convert $cmd filter.jpg"); 
?>

Filter to be used during resize. The standard filter is Lanczos
Flatten
<?php 
$cmd 
"-size 266x120 -background NavajoWhite -fill white".
" -gravity center caption:\"flatten\" ";
exec("convert $cmd flatten.jpg"); 
?>

This is a simple alias for the -layers method "flatten".
Flip
<?php 
$cmd 
"$input -flip ";
exec("convert $cmd flip.jpg");  
?>

Create a mirror image.
Floodfill
<?php 
$cmd 
"$input -fill Blue -fuzz \"25%\" -floodfill +80+30 ".
" \"#7b1216\"";
exec("convert $cmd floodfill.jpg"); 
?>

Floodfill the image with color at the specified offset. Using -fuzz to floodfill pixels which only change by a small amount.