Imagecache Server

Project
Imagecache server - diagram of the request process

The Drupal ImageCache module provides a Drupal callback URL that takes a preset name and a local filepath as arguments. It puts the two together and returns a result.

imagecache_server.module does a similar thing for any URL on the web

It provides a callback URL (or an RPC endpoint if you like the jargon) that allows certain clients to request that the ImageCache process be applied to any image with an URL.

This one utility :

  • receives a request via normal HTTP GET
  • deconstructs it to figure out the remote URL being asked for (as part of the GET query)
  • fetches that remote file to a temp location on the local server
  • runs imagecache on it as normal
  • returns the result.

Because of a few usage concerns, this process can be throttled or limited to only certain domains or referrers.

Included in the package are some starter PHP scripts for installing your own caching imagecache_client - place this in a directory and trigger on-the-fly transformations of your own images from your own directories, even on a non-Drupal site. Full instructions are here

Releases