You are here: Home Plone products ImageScales

ImageScales (0.1)

by Olha Pelishok last modified 2009-05-13
Released on 2009-05-12 by Steve McMahon for Plone 3.0 under LGPL - GNU Lesser General Public License available for All platforms.
Software development stage: stable
Patches ATImage to allows per site image scales.


ImageScales applies a simple patch to the schema used for ATImage to allow specification of image scales on a site-by-site basis. It should work with Plone 2.5 and 3.x. For Plone 3.x, you may wish to use instead.


Install ImageScales by adding "Products.ImageScales" to your buildout eggs list.

It's also possible to extract the "ImageScales" directory in ImageScales/Products and putting it in an old-style Zope Products directory.

ImageScales will not show up in your Plone add/remove products configlet as it needs no special installation.

How it works

Once the ImageScales patch is in place, getAvailableSizes method calls will be routed through a method installed on startup. This method will look for a portal_properties property sheet named imaging_properties. If it finds it, it will read the lines property allowed_sizes to get a list of sizes. If either the special property sheet or property are not found, the original ATImage scales will be used.

Document Actions
Powered by Plone