This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This 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 http://plone.org/products/cropping-imagefield

To use the field:

from croppingimage.field import CroppingImageField

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:

  • object/image_thumb
  • object/image_medium
  • object/image_large

trunk (2008-07-23)

  • xxx [Ingeniweb]

History for Products.croppingimage

2008-07-23 0.2-rc2

  • History.txt renamed to CHANGES to be support collective.releaser
  • removed float parsing for VERSION in config.py 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.

2008-07-23 0.2-rc1

  • added property force_format that allows to force landscape or portrait pictures. see docs/examples.txt for more information. [fRiSi]
  • more compact code example in README.txt [fRiSi]

2008-07-22 0.1

  • eggified product [fRiSi]
  • removed commented out “pdb set_trace” since archetypes svn repos has a commit hook that blocks checkins containing it [fRiSi]
  • initial import of 0.1 release to archetypes.MoreFieldsAndWidgets [fRiSi]
Release History

Release History

0.2rc2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2rc1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Products.croppingimage-0.2rc2-py2.4.egg (17.5 kB) Copy SHA256 Checksum SHA256 2.4 Egg Jul 23, 2008
Products.croppingimage-0.2rc2.tar.gz (133.9 kB) Copy SHA256 Checksum SHA256 Source Jul 23, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting