It is impossible for me to switch back to GD2 toolkit after attempting to switch to ImageMagick toolkit. My isp assures me that ImageMagick is installed on the server, and that php safe mode is NOT enabled, and the path to the convert module is indeed /usr/bin/convert. Yet somehow the error given is:
No file /usr/bin/convert could be found. PHP's open_basedir security resriction may be interfearing with the attempts to locate it.
Switching back to gd2 is impossible, the page keeps appearing with imagemagick selected.

Comments

drewish’s picture

Status: Active » Closed (duplicate)
rvens’s picture

StatusFileSize
new26.21 KB

Thanks, but I already found that. I commented out the lines in image.imagemagick.inc (located in the includes folder where I copied it to from the image module folder) and it does not work. I have a screen capture in the attachment. What happens is that when I return to this screen the imagemagick toolkit is selected again, and the same error appears. Note that safe mode is NOT enabled on the server ...

function image_imagemagick_settings() {
$form['#after_build'] = array('_image_imagemagick_build_version');
$form['image_imagemagick_convert'] = array(
'#type' => 'textfield',
'#title' => t('Path to the "convert" binary'),
// '#default_value' => variable_get('image_imagemagick_convert', '/usr/bin/convert'),
// '#required' => TRUE,
);
return $form;
}

drewish’s picture

StatusFileSize
new1.35 KB

well, open_basedir is NOT the same thing as safe mode. feel free to apply the attached patch to your copy of the toolkit. it'll give you a more accurate picture of what the the setting in on your machine.

rvens’s picture

Sorry, I know how to program, but not in php... How do I apply your patch?

drewish’s picture

StatusFileSize
new1.3 KB

I'm just going to apply the attached patch, it provides more information on what's going wrong. You can just grab the updated -dev release when it posts or pull it from the cvs server: http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/im...