Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is calling (ImageMagick) convert.exe from PHP script resulting in an unresponsive page?
    primarykey
    data
    text
    <p><strong>* This is now resolved *</strong> by clearing the temp folder in windows! </p> <p>Some info - Windows 2003 server, IIS 6 ImageMagick 6.3.3 PHP 5.2.0</p> <p>I am using ImageMagick to resize images on the server and I think this has recently been causing problems. What I am noticing is that when my PHP script executes the ImageMagick command the webpage freezes and will not reload. In fact I found that I have to clear the cache and cookies before I am able to reload the page and try again. Ive isolated the problem to the line of code that calls the imageMagick convert.exe. I get no response and using Mozilla Firebug to look at the traffic I can see that there is no data returned, no information about the page being called, simply it seems to hang.</p> <p>The code that calls ImageMagick has not changed and has always worked previously (about 2 years!) and is as follows -</p> <pre><code> $cmd = "convert.exe \"". $uploadfile . "\" -resize \"" . res_image_width ."x" . res_image_height . "&gt;\" \"". $uploadfile. "\" 2&gt;&amp;1"; passthru($cmd); //system($cmd); //exec($cmd); </code></pre> <p>(I have normally used passthru but I tried exec and system to see if I could return some info. )</p> <p>I can run ImageMagick commands from the command line no problem and images get resized fine... so ImageMagick seems to be working fine, it just appears to be the PHP -> ImageMagick communication that is the problem. Im hoping restarting might solve it. Do you know anything else it could be? How would I go about debugging this? </p> <p>many thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload