stingerman wrote:I have read all those but still can't figure it out.
Do I need a separate php file to call up imagemagick?
You need a PHP script (don't know if you need a separate file, but often that is part of the whole script for process with IM).
See if you can access IM from PHP to find out what version you have. You need to know where IM is located. On my ISP server the following work. Try one or all of them or contact your ISP to find out where IM is located or if they even have it.
The following are each in separate files for my testing of my server, but you can process IM in one long file.
Again, I am not expert and this is as far as I got with IM and PHP:
<?php
system("/usr/local/bin/convert -version");
?>
returns:
Version: ImageMagick 6.2.7 06/08/06 Q16
http://www.imagemagick.org Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
<?php
$IM_version=shell_exec("/usr/local/bin/convert -version");
echo $IM_version
?>
returns:
Version: ImageMagick 6.2.7 06/08/06 Q16
http://www.imagemagick.org Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>
returns:
Version: ImageMagick 6.2.7 06/08/06 Q16
http://www.imagemagick.org