Documentation: Apache Image

Apache Image provides the ability to resize images on the fly, with caching on the server side.

Now this has been done many times before, with one real difference. The other versions of this system all depend on files on the disk. They may use something like Apache Subproc to get the real file on the disk.

The problem is that many systems do not store their images on the disk. They could be returning images from an internal database, generated on the fly, or proxied off another system.

See Apache Subproc

This should not matter - you should still be able to resize them.

Examples:

/cgi-bin/generate.cgi

Now get the same entry via a prefix URL

/z/image/thumbnail/cgi-bin/generate.cgi

Now try it again with a Postfix on the image

/cgi-bin/generate.cgi?zaltana_image=thumbnail

This is just some of the ways you can configure Apache Image.

Note: I have namespaced my Apache configuration with "/z/" and "zaltana_" only for convenience. You can use any URL or anything at all using mod_rewrite.

See Apache Mapping

Source

Subversion Package: http://zaltana.org/project/zaltana/Apache-Image
Browse Trunk
Checkout command: svn co http://zaltana.org/project/zaltana/Apache-Image/trunk Apache-Image

Installation

Configuration

Example

Original: 
<img src="http://www.zaltana.org/project/zaltana/Style-Core/trunk/preview.jpg"/>
<br/>

Thumbnail:
<img src="http://www.zaltana.org/z/image/thumbnail/project/zaltana/Style-Core/trunk/preview.jpg"/>
Original:
Thumbnail: