Not Logged In

plone.app.imaging 1.0.6

Introduction

This package tries to factor out and re-use the image scaling code from
Archetypes into a separate package in order to make it user-configurable
and add support for storing the image data into ZODB blobs.

Installation

The easiest way to use this package is when working with installations
based on zc.buildout. Here you can simply add the package to your “eggs”
and “zcml” options, run buildout and restart your Plone instance.

Alternatively you can use the following configuration file to extend an
existing buildout:

This would create an up to 64 by 64 pixel scaled down version of the image
stored in the “image” field. It also allows for passing in addition
parameters support by plone.scale’s scaleImage function, e.g.
direction or quality.

Note that the scale method loads the actual image data into
memory on each invocation.

However, it’s recommended to use the tag method of the image
scales view directly because it avoids loading the image into memory.

Changelog

1.0.6 (2012-04-15)

Avoid loading an image scale object in order to generate a tag. It’s
expensive because it loads the image data into memory. The
documentation has been updated to reflect that this is the most
efficient usage of the API.

1.0.5 - 2011-04-03

Fix test now scale=None does not raise exception.
[elro]

1.0.4 - 2011-03-22

Add a tag method to @@images to simplify tagging of full sized images.
[elro]

Make scale=None return the original image wrapped as an ImageScaling object.
[elro]

1.0.3 - 2011-02-14

Avoid breaking on startup if PIL is not present.
[davisagli]

1.0.2 - 2011-02-10

Add getAvailableSizes and getImageSize to the @@images view.
[elro]

1.0.1 - 2011-01-03

Protect the control panel with a custom permission,
“Plone Site Setup: Imaging”, instead of the generic “Manage portal”.
[davisagli]

1.0 - 2010-07-18

Use the standard libraries doctest module.
[hannosch]

Update license to GPL version 2 only.
[hannosch]

1.0b11 - 2010-07-01

Fix issue with creating scales based on Image objects that are storing their
data as chained Pdata objects.
[davisagli]