If ImageAPI does not require PHP GD2 to function, why does it complain about its absence?

brianshumate - September 19, 2009 - 12:27
Project:ImageAPI
Version:6.x-1.6
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The title asks it all, really.

I do not wish to use the PHP GD library on my servers, and instead have chosen for various valid reasons, to use ImageMagick. Since Drupal does not absolutely require GD to function, I'd prefer to not encounter this situation:

What are the steps required to reproduce the bug?

  1. I log into any one of my Drupal websites
  2. I see a warning message:
    • One or more problems were detected with your Drupal installation. Check the status report for more information.
  3. I click the status report link
  4. Drupal proceeds to display another warning message:
    • GD library Not installed
      The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this.

What behavior were you expecting?

  1. I log into any one of my Drupal websites
  2. I proceed to enjoy working with said Drupal website
  3. If feeling particularly cheerful, I say or think something along the lines of, "I $term_of_endearment you, Drupal."

What happened instead?

  1. I log into any one of my Drupal websites
  2. Drupal complains incessantly and in a most dramatic manner (see attached screenshot), about said Drupal website's lack of a library that is not even required for it to function.
  3. If feeling particularly grumpy, I yell or think something along the lines of, "Drupal, here's a warning for you! How would you like to be $obscene_adverb . $destructive_command?!"

Can we please stop warning about missing non-essential libraries like this?

Thanks!

AttachmentSize
Screen shot 2009-09-19 at 7.42.28 AM.png36.82 KB

#1

brianshumate - September 19, 2009 - 12:52
Status:active» closed

Nevermind... this is PEBKAC. :-(

#2

brianshumate - September 27, 2009 - 14:25
Title:If Drupal does not *require* PHP GD to function, why does it complain about its absence?» If ImageAPI does not require PHP GD2 to function, why does it complain about its absence?
Project:Drupal» ImageAPI
Version:6.14» 6.x-1.6
Component:user interface text» User interface
Status:closed» active

OK.

After some additional testing. this is not a case of PEBKAC. ;-) It appears to be an issue with ImageAPI and possibly because GD2 is sort of the expected image library.

If I choose to use one toolkit over the other, I shouldn't have to deal with warnings about the other being unavailable, right? I notice that ImageAPI does not complain about the absence of ImageMagick the same way it does about the absence of GD2.

If GD2 is not required by Drupal core, or any other module I'm using, then there should be no warnings. I do not have ImageAPI GD2 selected in the module list, either.

Screen shots of the warning and my current ImageAPI / ImageCache settings are attached.

This is Drupal 6.14.

AttachmentSize
Screen shot 2009-09-27 at 10.20.26 AM.png 67.91 KB
 
 

Drupal is a registered trademark of Dries Buytaert.