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.
These methods worked for me, I so far have only tried out basic resizing with the installations.
Please do not send me any emails asking how to setup ImageMagick on your computer etc. as I do not have the knowledge to help you out.
If you have some other methods or notes that others may find useful email them to me and I will add them to the list.
You should install Ghostscript first if you want to do anything with text or pdf files.
You can check if you have Ghostscript installed with:
echo "<pre>";
system("which ghostscript");
system("ghostscript --version");
echo "</pre>";
You may need to install wget if you want to do anything with webpages off site.
You can check if you have wget installed with:
echo "<pre>";
system("which wget");
system("wget --version");
echo "</pre>";