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

2c’s picture

Priority: Minor » Critical

There 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!

dirkson’s picture

Priority: Critical » Minor

Thanks 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.

2c’s picture

Priority: Critical » Minor

Same with me.

I thought gd was already enabled by default though. I think this way of 'enabling' gd is unique to imageAPI.

dirkson’s picture

Status: Active » Closed (fixed)

Closing this. Don't know why I didn't earlier, sorry.

develcuy’s picture

Category: support » bug
Status: Closed (fixed) » Active

As @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!

drewish’s picture

Status: Active » Fixed

it 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.

dirkson’s picture

Status: Fixed » Active

Actually, 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."

drewish’s picture

Status: Active » Fixed

if you'd like to roll a patch and mark this as a feature request feel free. but as it sits, i consider it fixed.

develcuy’s picture

Category: bug » feature
Status: Fixed » Active

OK

drewish’s picture

Status: Active » Fixed

you forgot the patch part. re-closing.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.