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 14

Precision

Set the maximum number of significant digits to be printed.

Another Precision example

Preview

Image preview type.

More information to follow.

Print

Interpret string and print to console.



convert rose: -format "%wx%h\n" -write info: x.png

convert rose: -print "%wx%h\n" x.png

Output=70x46

Process

Process the image with a custom image filter.

More information to follow.

Profile

Manage ICM, IPTC, or generic profiles in an image.

More information to follow.

Quality

Specify the output image quality.

Quality example

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

( Only works for jpg, miff and png images 100 = least compression so best quality. )

Quantize

Reduce colors in this colorspace.

More information to follow.

Quite

Suppress all warning messages.

More information to follow.


( Error messages are still reported. )

Radial blur

Blur around the center of the image.

Radial blur example

$cmd = "$input -radial-blur 10"; 
exec("convert $cmd radial_blur.jpg");

Raise

Lighten or darken image edges.

Raise example

$cmd = "$input -raise 10"; 
exec("convert $cmd raise_up.jpg");

Raise

Lighten or darken image edges.

Raise example

$cmd = "$input +raise 10"; 
exec("convert $cmd raise_down.jpg");

Read

Explicit read of an image, rather than an implicit read.

Another Read example

Read mask

Prevent updates to image pixels specified by the mask

Another Read mask example

Red primary

Set the red chromaticity primary point.

Another Red primary example