You are not logged in Log in Join
You are here: Home » Members » Marc's Zope Page » ImageTag_CorePatch » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Members/bowerymarc/ImageTag_CorePatch
Title resource name
Description resource summary 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 parameters. 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 an HTTPCache 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 an HTTPCache if you have one set up. Also - for Plone users. Currently (2.0) Plone patches Image, overriding this hofix's patch of tag(). So I added pil_tag() to get around that. You can "try with error" pil_tag() and on error use tag() then your code will work whether or not this hotfix is there (and you have a try branch to tell if it is working - to notify the user or whatever).
Creator resource creator ZopeOrgSite
Date default date 2004-06-16 12:45:14
Format resource format text/html
Type resource type Software Package
Subject resource keywords Content Object, Visual
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2001-08-20 20:16:43
ModificationDate date resource last modified 2004-06-16 12:45:14
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati