Rubblewebs

THESE CODES ARE PROVIDED FOR AN EXAMPLE OF HOW TO USE IMAGEMAGICK WITH PHP. CARE SHOULD BE TAKEN WHEN ACCEPTING USER INPUT.

I TAKE NO RESPONSABILTY FOR ANY PROBLEMS THAT MAY OCCURE WHEN USING ANY OF THIS CODE.

IT IS UP TO YOU TO SECURE THE CODE AND VALIDATE USER INPUT.

Imagemagick operators page 12

Metric

Output to STDERR a measure of the differences between images according to the type given metric.

8.11889

system("compare -metric PSNR monochrome.jpg emboss.jpg difference.png 2>&1");

Mode

Mode of operation.

More information to follow.

Modulate

Vary the brightness, saturation, and hue of an image.

Modulate example

$cmd= "$input -modulate 125,75,100"; 
exec("convert $cmd modulate.jpg");

Moments

Report image moments.

system(" identify $input -moments");

( Used with identify.

Rubblewebs\imagemagick\operators\images\input.jpg JPEG 213x160 213x160+0+0 8-bit sRGB 34.9KB 0.000u 0:00.000 )

Monitor

Monitor progress.

More information to follow.

Monochrome

Transform the image to black and white.

Monochrome example

$cmd = "$input -monochrome "; 
exec("convert $cmd monochrome.jpg");

Morph

Morphs an image sequence.

Morph example

$cmd = "$input hald_clut.jpg colorspace.jpg -morph 20"; 
exec("convert $cmd morph.gif");
 

( File sizes can get quite large. )

Morphology

apply a morphology method to the image.

Mosaic

A simple alias for the -layers method "mosaic".

More information to follow.

Motion blur

Motion blur example

$cmd = "$input -motion-blur 0x8+30"; 
exec("convert $cmd motion_blur.jpg");
 

Name

Name an image.

More information to follow.

Negate

Replace every pixel with its complementary color.

Negate example

$cmd = "$input -negate "; 
exec("convert $cmd negate.jpg");

Noise

Add and remove noise

See noise

Normalize

Increase the contrast in an image by stretching the range of intensity values.

Normalize example

$cmd = "$input -normalize "; 
exec("convert $cmd normalize.jpg");