[Zope-Annce] ImageTag_hotfix - auto thumbnail generation

marc lindahl marc@bowery.com
Mon, 20 Aug 2001 20:23:49 -0400


This hotfix makes it so that all Image (and derived) object use PIL to
resize when you use the tag method with integer (non-%) height and/or width

This way, stuff like the PhotoAlbum will behave (not give you a page full of
full-image thumbnails).

This version should be cache aware, it's recommended for big sites to
associate these with a RAMcache to cut down on PIL usage- thought it's
pretty fast.

It also steals the RESPONSE.set_header code from Image so the thumbs are
cached on the clients.

Since it's a hotfix it's easy to try it and see if it's working for you, and
remove it if not. It does not modify any of your images - it generates the
thumbs on the fly and only stores them in a RAMcache if you have one set up.

Check the README.txt for sage advice on getting PIL to work :)

here: http://www.zope.org/Members/bowerymarc/ImageTag_Hotfix