Using Imagemagick from PHP on Apache Mac Server
Posted: 2015-07-28T05:31:28-07:00
Hi for all.
I have a problem to execute a simple line of code to convert an image
I have this path from executing this following code on terminal
On my terminal this code works fine and I havenĀ“t to include the path like this:
I have an Apache Server installed on my mac, and php works fine on other projects... And this code runs ok on php
So anyone can help me? I want to configure php to use Imagemagick commands and without the entire path.
Thank you!!
I have a problem to execute a simple line of code to convert an image
Code: Select all
<?php
echo exec("/opt/local/bin/convert foto.jpg -thumbnail 50x50 output.jpg");
?>
Code: Select all
type convert
Code: Select all
convert foto.jpg -thumbnail 50x50 output.jpg
Code: Select all
<?php
echo system("/opt/local/bin/convert -version");
?>
Thank you!!