I am trying to run ImageMagick's convert program from PHP. It works on the command line in the directory that has the PHP file but not called from PHP.
<?
// This should work.
//exec( "convert -geometry 150x150 500x300.jpg 150.jpg" );
passthru( "./convert -geometry 150x150 500x300.jpg 150x150.jpg" );
?>
The error_log file shows:
./convert: can't load library 'libtiff.so'
./convert: can't load library 'libtiff.so'
But it works from that directory on the command line!! Also, I've looked everywhere and I don't see a libtiff.so on the server.
Any ideas???