I'm trying to make ImageMagick work in a PHP script. On the command-line, it works fine. I guessed it was maybe due to convert
not being detected because ImageMagick is installed in the C:\xampp
folder. What could be going wrong?
<?php
$path ='C:/xampp/';
$image ='_media/4055-Beckman-Lead-App/client/fpo.pdf';
$png ='_media/4055-Beckman-Lead-App/client/Capture.PNG';
if(file_exists($png)){
echo $png;
exec($path.'convert'. $png .'_media/4055-Beckman-Lead-App/client/fpo.png');
}
else {
echo "file doesn't exist";
}