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.

Compose options

Add

More information to follow.

Add example
$cmd = " $input $input -gravity center -compose add -matte"; 
exec("composite $cmd add.jpg");

Clear

Clear the image

Clear example
$cmd = "$input9 $input8 -gravity northwest -compose clear -matte"; 
exec("composite $cmd clear.gif");

Color-burn

More information to follow.

Color-burn example
$cmd = " $input $input -gravity center -compose color-burn -matte"; 
exec("composite $cmd color-burn.jpg");

Color-dodge

More information to follow.

Color-dodge example
$cmd = " $input $input -gravity center -compose color-dodge -matte"; 
exec("composite $cmd color-dodge.jpg");

Copy

More information to follow.

Copy example
$cmd = "$input9 $input8 -gravity northwest -compose copy -matte"; 
exec("composite $cmd copy.gif");

Darken

More information to follow.

Darken example
$cmd = " $input $input -gravity center -compose darken -matte"; 
exec("composite $cmd darken.jpg");

Difference

Difference between the images

Difference example
$cmd = " annotate.jpg $input -gravity center -compose difference -matte"; 
exec("composite $cmd difference.jpg");

Dst

More information to follow.

Dst example
$cmd = "$input9 $input8 -gravity northwest -compose dst -matte"; 
exec("composite $cmd dst.gif");

Dst-atop

More information to follow.

Dst-atop example
$cmd = "$input9 $input8 -gravity northwest -compose dst-atop -matte"; 
exec("composite $cmd dst-atop.gif");

Dst-in

More information to follow.

Dst-in example
$cmd = "$input9 $input8 -gravity northwest -compose dst-in -matte"; 
exec("composite $cmd dst-in.gif");

Dst-out

No image available

Dst-out example
$cmd = "$input9 $input8 -gravity northwest -compose dst-out -matte"; 
exec("composite $cmd dst-out.gif");

Dst-over

More information to follow.

Dst-over example
$cmd = "$input9 $input8 -gravity northwest -compose dst-over -matte"; 
exec("composite $cmd dst-over.gif");

Exclusion

More information to follow.

Exclusion example
$cmd = " $input $input -gravity center -compose exclusion -matte"; 
exec("composite $cmd exclusion.jpg");

Hard-light

More information to follow.

Hard-light example
$cmd = " $input $input -gravity center -compose hard-light -matte"; 
exec("composite $cmd hard-light.jpg");