IM works from Windows Command, but not from within PHP

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: IM works from Windows Command, but not from within PHP

Post by Bonzo »

Try runing this code to find your path to convert then replace convert with the path this code returns.

Code: Select all

<?php
echo "<pre>";
system("type convert"); 
echo "</pre>";
?>
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: IM works from Windows Command, but not from within PHP

Post by anthony »

Also check out the other examples on IM setup on Bonzo's RubbleWeb site.
this includes methods for returning the error reports from the command, rather than going to the web server log file, which is not always accessible to users.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply