These examples are all generated using ImageMagick 6.5.6 Q16

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


The original unmodified image
Flop
<?php 
$cmd 
"$input -flop ";
exec("convert $cmd flop.jpg");  
?>

Reflect the scanlines in the horizontal direction.
Font
<?php 
$cmd 
"$input -font font/DRAGM.ttf -pointsize 40 ".
"-fill white -gravity south -annotate 0,0 \"Draw text\" ";
exec("convert $cmd font.jpg"); 
?>

Set the font to be used with draw, annotate etc. You can use a font recognised by Imagemagick or provide the path to a font.
-foreground-foreground
Format
<?php 
$time_stamp 
exec("identify -format \"%[EXIF:DateTime]\" $input");
$cmd "$input -pointsize 20 -gravity north ".
" -fill black -annotate +2+2 \"Date: $time_stamp\"  ".
" -fill white -annotate +0+0 \"Date: $time_stamp\"  ";
exec("convert $cmd format.jpg");
?>

Output formatted image characteristics.
PI=3.14159 <?php 
$pi 
exec("convert null: -format \"PI=%[fx:atan(1)*4]\" info:");
echo 
$pi;
?>

Another format example
Frame
<?php 
$cmd 
"$input -mattecolor NavajoWhite -frame 10x10+3+3";
exec("convert $cmd frame.jpg");  
?>

Frame -set the frame color with -mattecolor. The image size will increase by the frame size.
Function
<?php 
$cmd 
"$input -channel R -function Sinusoid 3,-90,.2,.7";
exec("convert $cmd Sinusoid.jpg");  
?>
Add another example http://www.imagemagick.org/Usage/color/#curves
Apply a function to channel values.
Fuzz
<?php 
$cmd 
"$input -fuzz 15% -transparent \"#7b1216\" ";
exec("convert $cmd fuzz.png");  
?>

Fuzz can be used to select a range of colours and in the example is used with transparent. Image displayed on a grey checkerboard to show the transparent areas.
Fx
<?php 
$cmd 
"$input -fx \"(1.0/(1.0+exp(10.0*(0.5-u)))-0.006693)*1.0092503\" ";
exec("convert $cmd fx.jpg");  
?>

The Fx special effects image operator is used to apply a mathematical expression to an image or image channels.
Gamma
<?php 
$cmd 
"$input -gamma 0.8 ";
exec("convert $cmd gamma.jpg"); 
?>

Level of gamma correction.
Gaussian-blur
<?php 
$cmd 
"$input -gaussian-blur 0x4 ";
exec("convert $cmd gaussian-blur.jpg"); 
?>

Blur the image with a Gaussian operator.
Geometry
<?php 
$cmd 
"$input -fill white -pointsize 40 -gravity center -geometry +30+30 -annotate +0+0 \"+30+30\" ";
exec("convert $cmd geometry.jpg"); 
?>

Geometry sets the coordinates for the modification. If -gravity is used it is in relation to the gravity position otherwise it is from the top left corner.
Gravity
<?php 
$cmd 
"$input -gravity north -annotate +0+0 \"North\" ";
exec("convert $cmd fuzz.png");  
?>

Gravity sets the location of the modification. Points of the compass are used e.g. North, North west, West etc.
green-primaryGreen chromaticity primary point.
hald-clutApply a Hald color lookup table to the image.

Usage: convert [options ...] file [ [options ...] file ...]
[options ...] file
Image Settings:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
Help
<?php
echo "<pre>";
system("convert -help");
echo 
"</pre>";
?>

Display the help file.

highlight-colorWhen comparing images, emphasize pixel differences with this color.
iconGeometrySpecify the icon geometry.
iconicIconic animation.
input.jpg=>-identify JPEG
266x200 266x200+0+0 8-bit DirectClass 16kb
Identify
<?php 
system
("convert $input -verbose -identify ");
?>

Identify the format and characteristics of the image
Image: input.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 266x200+0+0
Resolution: 72x72
Print size: 3.69444x2.77778
Identify
<?php 
echo "<pre>";
system("identify -verbose $input ");
echo 
"</pre>";
?>

A better method; only the first 6 lines displayed.
iftImplements the inverse discrete Fourier transform (DFT).
Implode
<?php 
$cmd 
"$input -implode 2 ";
exec("convert $cmd implode.jpg");  
?>

Implode image pixels about the center.Implode greater than 1 is over-kill and implode with a negative number is an 'explode'
immutableMake image immutable.
insertInsert the last image into the image sequence.
intentUse this type of rendering intent when managing the image color.
interlaceThe type of interlacing scheme.
interpolateSet the pixel color interpolation method to use when looking up a color based on a floating point or real value.
interline-spacing
<?php 
$cmd 
"-size 266x120 -background NavajoWhite -fill white".
" -gravity center -interline-spacing 10 -pointsize 30".
" caption:\"Caption with interline spacing\" ";
exec("convert $cmd interline-spacing.jpg");   
?>

The space between two text lines.
interword-spacing
<?php 
$cmd 
"-size 266x120 -background NavajoWhite -fill white".
" -gravity center -interword-spacing 30 -pointsize 30".
" caption:\"Caption with interword spacing\" ";
exec("convert $cmd interword-spacing.jpg");  
?>

The space between two words.
Kerning
<?php 
$cmd 
"-size 266x120 -background NavajoWhite -fill white".
" -gravity center -pointsize 30 -kerning 15 caption:\"Kerning\" ";
exec("convert $cmd kerning.jpg");  
?>

The space between two letters.
Label
<?php 
$cmd 
"$input -fill white -label \"Hibiscus\" ";
exec("convert $cmd label.jpg");
?>

Label - Not displayed but added to the image.
Lat
<?php 
$cmd 
"$input -lat 50x50+100+50";
exec("convert $cmd lat.jpg"); 
?>

Perform local adaptive threshold.
LayersHandle multiple images forming a set of image layers or animation frames.
Level
<?php 
$cmd 
"$input -level 5%,95%,0.8";
exec("convert $cmd level.jpg"); 
?>

Adjust the level of image channels.
-level-colorsAdjust the level of an image using the provided dash seperated colors.
limitSet the pixel cache resource limit.
linear-stretchLinear with saturation stretch.
Linewidth
<?php 
$cmd 
"$input -stroke black -linewidth 5".
" -fill none -draw \"circle 150,100 150,10 \" ";
exec("convert $cmd linewidth.jpg");   
?>

Linewidth is depreciated use strokewidth.
Liquid rescale
<?php 
$cmd 
"$input -liquid-rescale \"75x100%\!\" ";
exec("convert $cmd liquid_rescale.jpg");  
?>

Rescale image with seam-carving.
All the gravity options
None
Center
East
Forget
NorthEast
North
NorthWest
SouthEast
South
SouthWest
West
Static
<?php 
echo "All the gravity options<br><pre>";
system("convert -list gravity"); 
echo 
"</pre>";
?>

Print a list of supported arguments for various options or settings.
logSpecify format for debug log.
Loop
<?php 
$cmd 
"-size 100x100 xc:none -stroke black ".
"-strokewidth 3 -fill none -draw \"circle 50,50 50,10 \" ";
exec("convert $cmd ball.gif"); 

$cmd " -dispose previous -delay 5 -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 loop.gif");    
?>

Add Netscape loop extension to your GIF animation.
lowlight-colorWhen comparing images, de-emphasize pixel differences with this color.
Magnify
<?php 
$cmd 
"$input -magnify 2";
exec("convert $cmd magnify.jpg"); 
?>

Magnify the image. - NOT WORKING
mapDisplay image using a specified type.
maskComposite the image pixels as defined by the mask.
Mattecolor
<?php 
$cmd 
"$input -mattecolor NavajoWhite -frame 10x10+0+0";
exec("convert $cmd mattecolor.jpg");   
?>

Mattecolor - sets the color for -frame
Median
<?php 
$cmd 
"$input -median 1";
exec("convert $cmd median.jpg");  
?>

Apply a median filter to the image.
convert: unrecognized option `-Metric'
@ convert.c/ConvertImageCommand/2807. 1
Metric
<?php 
system
("convert $input emboss.jpg -Metric AE 2>&1"$info); 
print_r($info); 
?>

Output to STDERR a measure of the differences between images according to the type given metric.
modeMode of operation.
Modulate
<?php 
$cmd
"$input -modulate 125,75,100";
exec("convert $cmd modulate.jpg");
?>

Vary the brightness, saturation, and hue of an image.
-monitorMonitor progress.
mosaicA simple alias for the -layers method "mosaic"
Motion-blur
<?php 
$cmd 
"$input -motion-blur 0x8+30";
exec("convert $cmd motion_blur.jpg");  
?>

Simulate motion blur.
Monochrome
<?php 
$cmd 
"$input -monochrome ";
exec("convert $cmd monochrome.jpg");  
?>

Transform the image to black and white.
Morph
<?php 
$cmd 
"morph/path.jpg morph/view.jpg -morph 15";
exec("convert $cmd morph.gif");  
?>

Morphs an image sequence. File sizes can get quite large.
nameName an image.
Negate
<?php 
$cmd 
"$input -negate ";
exec("convert $cmd negate.jpg");   
?>

Replace every pixel with its complementary color.
Noise
<?php 
$cmd 
"$input -noise 2";
exec("convert $cmd noise.jpg");   
?>

Add or reduce noise in an image.
Noise - Gaussian
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Gaussian with the noise type.
Noise - Impulse
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Impulse with the noise type.
Noise - Laplacian
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Laplacian with the noise type.
Noise - Multiplicative
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Multiplicative with the noise type.
Noise - Poisson
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Poisson with the noise type.
Noise - Random
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Random with the noise type.
Noise - Uniform
<?php 
$cmd 
"$input +noise $value";
exec("convert $cmd $value.jpg"); 
?>

Add noise to a image. Replace Uniform with the noise type.
Normalize
<?php 
$cmd 
"$input -normalize ";
exec("convert $cmd normalize.jpg");  
?>

Increase the contrast in an image by stretching the range of intensity values.
ordered-ditherDither the image using a pre-defined ordered dither threshold map specified, and a uniform color map with the number of levels per color channel .
Opaque
<?php 
$cmd 
"$input -fuzz \"20%\" -fill orange -opaque red";
exec("convert $cmd opaque.jpg");   
?>

Opaque using fill for the replacement colour and -fuzz to select a range.
Orient
<?php 
$cmd 
"$input -orient bottom-left";
exec("convert $cmd orient.jpg");   
?>

Specify orientation of a digital camera image.
PageSet the size and location of an image on the larger virtual canvas.
Paint
<?php 
$cmd 
"$input -paint 2";
exec("convert $cmd paint.jpg");    
?>

Oil paint effect.
pathWrite images to this path on disk.
pausePause between animation loops.
40ping
<?php 
$output 
exec("identify -ping -format \"%[fx:h*0.2]\" $input");
echo 
$output;
?>

Efficiently determine image characteristics. This can speed up the identify process
Posterize
<?php 
$cmd 
"$input -posterize 3";
exec("convert $cmd posterize.jpg"); 
?>

Reduce the image to a limited number of color levels.
Polaroid
<?php 
$cmd 
" -caption \"A  Hibiscus\" $input -background black -polaroid 5";
exec("convert $cmd polaroid.png");    
?>

Polaroid effect. -polaroid = set the angle +polaroid = random angle between -15 and +15 degrees. - Background controls the shadow colour; save as png for transparent background.
Pointsize
<?php 
$cmd 
"$input -font font/DRAGM.ttf -pointsize 55 ".
"-fill white-gravity south -annotate 0,0 \"Draw text\" ";
exec("convert $cmd pointsize.jpg"); 
?>

Set the font size to be used with draw, annotate etc.
previewImage preview type.
printInterpret string and print to console.
processProcess the image with a custom image filter.
profileManage ICM, IPTC, or generic profiles in an image.
Quality
<?php 
$cmd 
"$input -quality 10";
exec("convert $cmd quality.jpg");  
?>

Specify the output image quality - only works for jpg, miff and png images 100 = least compression so best quality.
quantizeReduce colors in this colorspace.
quiteSuppress all warning messages. Error messages are still reported.
Radial-blur
<?php 
$cmd 
"$input -radial-blur 10";
exec("convert $cmd radial-blur.jpg"); 
?>

Blur around the center of the image.
Raise
<?php 
$cmd 
"$input -raise 10";
exec("convert $cmd raise_up.jpg");    
?>

Lighten or darken image edges.
Raise
<?php 
$cmd 
"$input +raise 10";
exec("convert $cmd raise_down.jpg");  
?>

Lighten or darken image edges.
Region
<?php 
$cmd 
"$input -region 160x180+35+30 -colorspace Gray";
exec("convert $cmd region_gray.jpg");  
?>

Set a region in which subsequent operations apply.
regard-warningsPay attention to warning messages.
remapMissing on IM website
remotePerform a remote operation.
renderRender vector operations.
repageAdjust the canvas and offset information of the image.
Resample
<?php 
$cmd 
"$input -resample 30";
exec("convert $cmd resample.jpg");   
?>

Resample image to specified horizontal and vertical resolution.
respect-parenthasesSettings remain in effect until parenthesis boundary.
reverseReverse the order of images in the current image list.
Roll
<?php 
$cmd 
"$input -roll +50+0";
exec("convert $cmd roll.jpg");  
?>

Roll an image vertically or horizontally by the amount given.
Rotate
<?php 
$cmd 
"$input -rotate 90";
exec("convert $cmd rotate.jpg"); 
?>

Rotate. Use > to rotate the image only if its width exceeds the height. < rotates the image only if its width is less than the height. For example, if you specify -rotate "-90>" and the image size is 480x640, the image is not rotated. However, if the image is 640x480, it is rotated by -90 degrees.
Rotate
<?php 
$cmd 
"$input -background transparent -rotate 30";
exec("convert $cmd rotate_30.png");  
?>

Resize
<?php 
$cmd 
"$input -resize \"50%\" ";
exec("convert $cmd resize_percent_equal.jpg"); 
?>

Resize by percent. Resize and thumbnail have the same effect but thumbnail strips the EXIF data etc.
You can specify the filter to use - see filter.
Resize
<?php 
$cmd 
"$input -resize \"100%x50%\" ";
exec("convert $cmd resize_percent_height.jpg"); 
?>

Resize by percent - leave the width as is and Blueuce the height by 50%
Resize
<?php 
$cmd 
"$input -resize 100x100";
exec("convert $cmd resize_normal.jpg");  
?>

Resize by specifed sizes. The aspect ratio is maintained, and the maximium sizes of width and height are used. You can leave the width or height out if you want to resize by one or the other e.g. x100
Resize
<?php 
$cmd 
"$input -resize \"100x100^\" ";
exec("convert $cmd resize_caret.jpg");   
?>

Resize by specifed sizes. The aspect ratio is maintained, and the minimium sizes of width and height are used.
Resize
<?php 
$cmd 
"$input -resize \"100x100!\" ";
exec("convert $cmd resize_exact.jpg");   
?>

Resize to specifed sizes and the aspect ratio is ignored.
Resize
<?php 
$cmd 
"$input -resize \"100x100<\" ";
exec("convert $cmd resize_1.jpg");  
?>

Change dimensions only if both image dimensions exceed specified dimensions.
Resize
<?php 
$cmd 
"$input -resize \"100x100>\" ";
exec("convert $cmd resize_2.jpg");  
?>

Change as per widthxheight but only if an image dimension exceeds a specified dimension.
Resize
<?php 
$cmd 
"$input -resize 10000@ ";
exec("convert $cmd resize_area.jpg");  
?>

Resize image to have specified area in pixels. Aspect ratio is preserved.
Sample
<?php 
$cmd 
"$input -sample 100x100";
exec("convert $cmd sample.jpg");
?>

Scale image using pixel sampling.
sampling-factorSampling factors used by JPEG or MPEG-2 encoder and YUV decoder/encoder.