There seems to be a slight error in the image.imagemagick.inc file. When you select imagemagick from the image toolkit settings page and it doesn't find imagemagick in the selected path, the form keeps you from going back to the GD2 toolkit. It seems to be the fact that image.imagemagick.inc is requiring a valid path to imagemagick, even when you're trying to switch away from imagemagick. The result was that image resizing was disabled for the whole site, and I was only able to switch back after commenting out the following lines in image.imagemagick.inc:

    '#required' => TRUE,
    '#validate' => array('image_imagemagick_valid_file' => array('image_imagemagick_convert')),
CommentFileSizeAuthor
#6 imagemagick_unselect.patch1.38 KBdrewish

Comments

drewish’s picture

Title: image.imagemagick.inc disables image resizing » can't unselect imagemagick if it isn't installed

ah, yeah that is kind of annoying.

drewish’s picture

you're really running into this issue: http://drupal.org/node/113385

senpai’s picture

Version: 5.x-1.0 » 5.x-1.1

I'm adding the words Image Toolkit to this issue so that it'll show up in searches. I'll also change the version, since it still rears it's nasty head in image module version 5.x-1.1

senpai’s picture

Title: can't unselect imagemagick if it isn't installed » Image Toolkit: can't unselect imagemagick if it isn't installed

Aww, bugger. I forgot to change the title of the issue last time. Here you go!

drewish’s picture

marked http://drupal.org/node/155161 as a duplicate.

drewish’s picture

Status: Active » Fixed
StatusFileSize
new1.38 KB

okay i finally figured out a clean way to do this. i'm committing the the attached patch.

Anonymous’s picture

Status: Fixed » Closed (fixed)