Products.croppingimage 0.2 RC2

ImageField that crops images that do not fit the expected ratio
Products.croppingimage is a Plone product that will resize all images to the dimensions you specify, but instead of stretching, it will scale the images and crop the overhang.

For some examples how to configure CroppingImageField and result pictures see docs/examples.txt or the Project page on

To use the field:

from croppingimage.field import CroppingImageField

 name = 'image',
 long_edge_size = 600,
 short_edge_size = 450,

 # use this if you don't want portrait images to scale to (450x600) (see docs/examples.txt)
 force_format = 'landscape',

 sizes= {'large' : (600, 450),
 'medium' : (300, 225),
 'thumb' : (125, 94),},
 widget = ImageWidget(label= "Image",)

This will create an attribute called "image" with the sizes thumb, medium, large as given.

This will be accessible as object/image, and the sizes as:


last updated on:
September 1st, 2011, 14:02 GMT
license type:
GPL (GNU General Public License) 
developed by:
Ben Mason
ROOT \ Internet \ Plone Extensions
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in This Release:
  • History.txt renamed to CHANGES to be support collective.releaser
  • removed float parsing for VERSION in to make "0.2rc1" work too.
  • added a README.txt file to skins directory hoping it will make the skins directory available in the egg release too.
read full changelog

Add your review!