You are here: Home Plone products archetypes.clippingimage

archetypes.clippingimage (1.1.1)

1
by Olha Pelishok last modified 2010-03-31
0.0
0.0
0.0
0.0
Released on 2009-03-25 by Jens Klein for Plone 3.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
Image field with clipping support for Plone/Archetypes.

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

Document Actions
Powered by Plone