This module appeared at first to be just what the doctor ordered, except that I was unable to get it running - at least until GD2 support was enabled on our server.
To troubleshoot, I also installed the ImageAPI module - which was when I noticed GD2 wasn't enabled. I tried to enable ImageAPI's ImageMagick support, thinking it would be enough to make this module work, but in reality, _this_ module has no dependency on ImageAPI, only PHP GD2.
Once GD2 support was enabled, this module worked like a charm. (Then I disabled ImageAPI.)
Perhaps this module could follow in ImageAPI's footsteps: instantiate an "Admin" page that seeks out GD2 and carps if it's not available.
Thank you!
Comments
Comment #1
quicksketchImage Resize Filter isn't actually dependent on GD2 (you can use ImageMagick also), it'll use whatever toolkit is set up at admin/settings/image-toolkit. That page should also give you an error if you don't have an available toolkit at all.
Comment #2
quicksketchThis patch makes it so that the module may not be enabled if no toolkits are available. Image resize filter now provides support for ImageAPI through #512046: Add support for ImageAPI if available.
Comment #4
MixologicI know this is an old patch, but I just ran into a bugger of an edge case where I couldnt get image_resize_filter installed.
I had enabled image_api, but hadnt configured it yet and as such had not enabled any imageapi default toolkits, though I *did* have gd installed and live at admin/settings/image-toolkit, so the test at line 25 of image_resize_filter.install was erroneously telling me I didnt fullfill the requirements
perhaps inverse the logic in that if statement to the following:
(thats assuming that one requirement or the other is satisfactory)
Comment #5
quicksketchThanks, that does make sense. ImageAPI should really kick and scream at people if they've enabled ImageAPI but not one of the toolkits, that's bitten me a few times before too.
Comment #6
quicksketchI think my initial patch actually may have done exactly what I intended it to do, since you shouldn't have ImageAPI installed at all if you're not using it. However it really isn't the place of Image Resize Filter to be trying to enforce such requirements. I've committed this patch which makes the change as you suggest.
Comment #7
MixologicRight on... I probably wouldnt have run into this issue as I *am* using imageAPI.. but I was setting up a new site, and as such didnt necessarily flip on and configure all the modules I was planning on using in the proper order (ie. used drush dl/drush en a bunch). So I had it installed, enabled and not configured (yet).
Patch works for me, thanks!