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.

Installed version

Find the installed version of ImageMagick being used by php

		
echo "<pre>";
system("convert -version");  
echo "</pre>";

	

Output:

Version: ImageMagick 6.3.4 05/11/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC


Note: You could have multiple versions installed and this will confirm which version php is using. It could a different version than using Imagemagick directly from the command line.
You might not get a version number returned and then you would need to add the path to convert - see Path