archetypes.clippingimage (1.1.1)
- archetypes.clippingimage download link: http://pypi.python.org/packages/source/a/archetypes.clippingimage/archetypes.clippingimage-1.1.1.tar.gz#md5=20532fe457211f30467ce2ad84576ba0
- Homepage of archetypes.clippingimage: http://pypi.python.org/pypi/archetypes.clippingimage
- archetypes.clippingimage repository: https://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/archetypes.clippingimage
- Description source: http://pypi.python.org/pypi/archetypes.clippingimage
Image field for Archetypes with different behavior at time of scaling.
Introduction
Archtypes default ImageField scales down the image until the whole image fits into the given scale. It keeps it aspect ratio. I.e. scaling down a 400x300 image to a 200x200 scale result in a 200x150 image.
Same with ClippingImageField results in a 200x200 image! It centers the image horizontal or vertical and tries to keep as much as possible from the original.
Usage:
Specify the sizes as documented for the classic Archetypes ImageField. If you want specific scales to not get clipped, add a field-property classic_crop=['image_large','other_scale']. It expects a list of scale names to exclude from clipping