I am not an expert with PHP, but first you need to know where IM is installed, usually /usr/local/bin or /usr/local.HarPaddy wrote:Hi.
I have a problem with imagemagick.
Imagemagick has been installed on my server, but "exec()" has been disabled for some security reasons . I am having FastCGI has been enabled on server and i can use binary conversion of imagemagick.
Can u please help me how to generate thumbnails using imagemagick with PHP functions without using "exec()" command? I am struggling with this from long time. Please help me out.
Thanks,
HarPaddy
Then try using either system or shell exec:
<?php
system("/usr/local/bin/convert -version");
?>
or
<?php
$IM_version=shell_exec("/usr/local/bin/convert -version");
echo $IM_version
?>
Do either of those return the IM version?