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 10

Immutable

Make image immutable.

More information to follow.

Implode

Implode image pixels about the center.

Implode example

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

( Implode greater than 1 is over-kill and implode with a negative number is an 'explode' )

Insert

Insert the last image into the image sequence.

More information to follow.

Intensity

Method to generate intensity value from pixel.

Intent

Use this type of rendering intent when managing the image color.

More information to follow.

$cmd = "$input -intent relative -black-point-compensation".
" -profile CMYK_PROFILE ";

exec("convert $cmd intent.jpg");

Interlace

The type of interlacing scheme.

More information to follow.

Interline spacing

The space between two text lines.

Interline spacing example

$cmd = "-size 213x160 -background NavajoWhite -fill black". 
" -gravity center -interline-spacing 10 -pointsize 30". 
" caption:\"Caption with interline spacing\" "; 
exec("convert $cmd interline-spacing.jpg");
  

Interpolate

Set the pixel color interpolation method to use when looking up a color based on a floating point or real value.

More information to follow.

Interword spacing

The space between words.

Interword spacing example

$cmd = "-size 213x160 -background NavajoWhite -fill black". 
" -gravity center -interword-spacing 30 -pointsize 30". 
" caption:\"Caption with interword spacing\" "; 
exec("convert $cmd interword-spacing.jpg");
   

Kerning

The space between letters.

Kerning example

$cmd = "-size 213x160 -background NavajoWhite -fill black". 
" -gravity center -pointsize 30 -kerning 15 caption:\"Kerning\" "; 
exec("convert $cmd kerning.jpg");
   

Label

Not displayed but added to the image.

Label example

$cmd = "$input -label \"Hibiscus\" "; 
exec("convert $cmd label.jpg");

Lat

Perform local adaptive threshold.

Lat example

$cmd = "$input -lat 50x50+100+50"; 
exec("convert $cmd lat.jpg");

Layers

Handle multiple images forming a set of image layers or animation frames.

See layers page.

Level

Adjust the level of image channels.

Level example

$cmd = "$input -level 5%,95%,0.8"; 
exec("convert $cmd level.jpg");