At the moment, image.inc searches the includes directory for image.*.inc files. That means that, while we have the flexibility to include any number of image toolkits, none but the default GD toolkit are available until they are copied to the includes directory. I object to this on two grounds:

  1. It's hard to keep track of updates to image.*.inc files.
  2. Extra steps are required to make image.*.inc files that come bundled with modules (the only way they come at the moment) work.

I plan to write a patch to allow image.inc to use image.*.inc files in other directories. My idea is that module installation files could register the path to their bundled toolkits in the variable table. I'd like to hear ideas from others before I start writing.

Comments

drewish’s picture

Version: 6.x-dev » 7.x-dev
sun.core’s picture

Version: 7.x-dev » 8.x-dev
valthebald’s picture

Status: Active » Closed (duplicate)

This was fixed in #270508: Image toolkits should not have to be copied into the /includes directory. Current behaviour (in 8.x and 7.x):

$toolkits = module_invoke_all('image_toolkits');

which well allows other module declare their own toolkits.