Requests for images below this directory MAY be dynamically resolved. If the requested file exists one folder UP from here, and you ask for a presetname DOWN form here, the found image will be processed using a remote image transformation, then saved back here under the preset-named directory.
EG. If there is a file /images/test.jpg and this
imagecache client directory is here at /images/imagecache/
then you can request /images/imagecache/thumbnail/test.jpg
and you SHOULD get a mogrified image back from there.
This folder MUST be writable from the webserver in order to dynamically create the local copies.
You must have a Drupal server instance somewhere accessible on the web. It can be anywhere, as long as it's publically available. That server must have the imagecache_server module installed, and a few presets configured using the normal Drupal methods.
Remember to enable permission for the anonymous user to use imagecache_server
Place a copy of this imagecache_client directory (the one containing imagecache_client.php and .htaccess) immediately under your websites 'images' directory.
Modify this directory so that it is writable by the webserver.
Edit the settings file to define the URL of your imagecache server.
If it is not already present, you should create a file called
imagecache_client_config.inc.php based on the sample distributed here.
PHP execution support and .htaccess support must be configured on the server as usual!
As described, this script will sit inside this directory and catch any incoming image requests. It is your job to create links (img src="") to the appropriate path
What happens is if the requested file is not found then the imagecache_client script kicks in and creates it on the fly with the assistance of the remote server - which actually does all the work.
By Dan Morrison (dman@drupal) dan@coders.co.nz [2009/08] as an experiment to leverage imagecache on behalf of smaller, lightweight or plain-html sites.