--- imageapi_imagemagick.module.orig 2009-05-04 16:03:17.588202080 -0400 +++ imageapi_imagemagick.module 2009-05-04 16:03:13.408201014 -0400 @@ -191,7 +191,8 @@ 1 => array('pipe', 'w'), // stdout 2 => array('pipe', 'w') // stderr ); - if ($h = proc_open($convert_path .' '. $command_args, $descriptors, $pipes, $_SERVER['DOCUMENT_ROOT'])) { + $drupal_path = dirname($_SERVER['SCRIPT_NAME'] ? $_SERVER['SCRIPT_NAME'] : $_SERVER['SCRIPT_FILENAME']); + if ($h = proc_open($convert_path .' '. $command_args, $descriptors, $pipes, $_SERVER['DOCUMENT_ROOT'] . $drupal_path)) { $output = ''; while (!feof($pipes[1])) { $output .= fgets($pipes[1]);