Patch for ImageAPI 6.x-1.x-dev on Windows 7 breaks 5.x-1.5 on Linux - original issue & patch #360193: ImageAPI Broken - base_path() problem & comment about problem #360193: ImageAPI Broken - base_path() problem.
Basically the problem is that the patch mentioned above sets the current working directory for ImageMagick to the server root. This breaks the module for multisite configurations that do not use the server root as the Drupal root.
Imagecache uses relative references from the drupal root, not the server root. So if I have a single site with my drupal root & server root the same, there is no problem with relative references since effectively they are relative to the server root as well.
But in a case where the two are not equal, there's a problem. For example the problem should be obvious with this example configuration:
- server root: /var/www
- drupal root: /var/www/drupal-5.16
- relative image url: sites/example.com.kong/files/monster.jpg
A solution is to append the base_path to the server root. I'm not sure if this will break things on Windows 7, but it will fix things for everyone else.
| Comment | File | Size | Author |
|---|---|---|---|
| imageapi_patch.txt | 598 bytes | scafmac |
Comments
Comment #1
scafmac commentedI guess I messed up that comment shortcut - the direct url is http://drupal.org/node/360193#comment-1506206
Comment #2
drewish commentedi think i'd rather keep this tied in with #360193: ImageAPI Broken - base_path() problem since the bu is really a result of that issues.