Found fix for problem below:

The solution was to include the full path of the
covert program in the exec statement so:
exec("/usr/local/bin/convert -geometry 200x100!
-quality 100 uploads/my.jpg uploads/my.jpg");

I have never had to do this before on other
servers so my guess is that there is some kind of
environment variable telling php (apache or
whatever) that convert is located in
/usr/local/bin or any other program for that
matter i.e. composite

Bit off topic from Imagemagick but does anyone
know how this has been done so the command:

=======================
Problem
========================

1. Installed imagemagick 6.2.5 on centos 5 no
problem.
2. Ran: 'which convert' at the command line -
returned /usr/local/bin 3. Ran a few image tests
from the CLI which work fine - resize etc 4. Used
php exec() function with the same commands and
absolutely nothing happens!
exec("convert -geometry 200x100! -quality 100
uploads/my.jpg uploads/my.jpg");
 
If a test the return there is nothing so no error
so $return = exec(blah....
print $return // nothing
 
PHP is not in safe mode - have a dedicated server
so exec() is allowed - tested this Tried
restarting apache - did not work Ran ldconfig to
update server libraries - did not work
 
Saw this post
http://www.codeaholics.com/codeBlog.php that says
to restart the server but it looks like a windows
user!
 
Does imagemagick have to be configured ./configure
with any params for apache/php etc?
I have other webservers that work fine using
exec("convert -- blah blah) the only difference
being that imagemagick (convert) was pre-installed
 
I've seen a few web posts from users having same
issues with no successful solution This is driving
me nuts!
 
Please help

 

Regards,

 

Jonno

 
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/mag
ick-users

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to