image toolkit may stay in db after its removal;.
e.g. (from `variable` table): image_toolkit s:12:"imagemagick2";
But imagemagick was removed. Drupal settings must provide ability for user to choose GD2.

CommentFileSizeAuthor
#1 imagetoolkitreset.patch995 bytesjvandyk

Comments

jvandyk’s picture

Version: 4.7.3 » x.y.z
Component: base system » system.module
Status: Active » Needs review
StatusFileSize
new995 bytes

This patch resets the image toolkit to GD2 if imagemagick is removed. It also informs the user if GD2 is not available. The code already checked for that case, but did not relay the information to the user.

This is useful for 4.7 too.

drumm’s picture

Version: x.y.z » 5.x-dev

How can $toolkits_available be FALSE? image_get_available_toolkits() always returns an array with at least GD.

drumm’s picture

Status: Needs review » Needs work
drewish’s picture

Status: Needs work » Closed (duplicate)

this is older but the patch is less relevant so i'm marking it as a dupe of http://drupal.org/node/113385