*** image.imagemagick.inc --- image.imagemagick.inc.old *************** *** 123,128 **** --- 123,133 ---- * Calls the convert executable with the specified filter. */ function _image_imagemagick_convert($source, $dest, $args) { + $dest_orig = $dest; + if(isset($args['convertto'])){ + $dest = $args['convertto'].':'.$dest; + unset($args['convertto']); + } $command = implode(' ', array( preg_replace("/[^A-Za-z0-9\!\.\-\+\_\/\040]/", '', implode(' ', $args)), escapeshellarg($source), *************** *** 132,138 **** if (0 != _image_imagemagick_convert_exec($command, $output, $errors)) { return FALSE; } ! return file_exists($dest); } function _image_imagemagick_convert_exec($command_args, &$output, &$errors) { --- 137,143 ---- if (0 != _image_imagemagick_convert_exec($command, $output, $errors)) { return FALSE; } ! return file_exists($dest_orig); } function _image_imagemagick_convert_exec($command_args, &$output, &$errors) {