ImageScales (0.1)
- ImageScales download link: http://plone.org/products/imagescales/releases
- Homepage of ImageScales: http://plone.org/products/imagescales
- ImageScales repository: http://svn.plone.org/svn/collective/Products.ImageScales
- Description source: http://pypi.python.org/pypi/ImageScales
Introduction
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 plone.app.imaging instead.
Installation
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.