Imageapi can't open... well, any files. With any permissions. All I get back is the grammatically-challenged: "ImageAPI failed to open files/giant.png with" .
I'm utterly stumped here. No useful error messages through apache, or any other log files I can find. Just imageapi's stubborn to open files. Using Drupal 6 here, with GD
-Jeff
Comments
Comment #1
2c commentedThere seems to be an issue with using imageapi_gd as a toolkit. In the function imageapi_default_toolkit() there's a line that reads:
if (isset($toolkit) && module_exists($toolkit)) {
module_exists($toolkit) evaluates to false. Is there supposed to be a module for gd?
Eureka, OP enable the ImageAPI GD2 module....solved my problem!
Comment #2
dirkson commentedThanks for the reply. I took a look at this site again yesterday.... I was actually a moron, and forgot to enable an image toolkit. Still, a more useful error message would have helped me diagnose this a lot sooner.
Comment #3
2c commentedSame with me.
I thought gd was already enabled by default though. I think this way of 'enabling' gd is unique to imageAPI.
Comment #4
dirkson commentedClosing this. Don't know why I didn't earlier, sorry.
Comment #5
develcuy commentedAs @phonydream2 said,
I have experienced same problem in 5.x release, perhaps is a matter of drupal module dependencies systems, but imageapi should at least do some kind of notice: "Hey! if you want this module working please activate some image toolkit module: ImageAPI GD or ImageAPI ImageMagick".
I consider this is an usability error...
Blessings!
Comment #6
drewish commentedit has a requirement on a tool kit but the current module dependency system doesn't let us do an OR. it'd the best it can be right now.
Comment #7
dirkson commentedActually, I disagree with the current behavior being the best it can be. While you can't affect the /dependency/, you can certainly affect the error message. You mind consider that, whenever the module prints the current error, it should follow it up with, "This usually means that you've forgotten to enable an image toolkit. Please check the module page to ensure that an image toolkit is enabled."
Comment #8
drewish commentedif you'd like to roll a patch and mark this as a feature request feel free. but as it sits, i consider it fixed.
Comment #9
develcuy commentedOK
Comment #10
drewish commentedyou forgot the patch part. re-closing.