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.
$cmd = " $input17 -resize 500x500> -segment 1x1 ".
" +dither -colors 2 -edge 1 -normalize -negate ";
exec("convert $cmd pencil.jpg");
The idea of this was to make a pencil type sketch that children could then join up the parts and colour in. The original photo is resized if it is over 500x500