Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Automatic scaling of (too large) images in Plone sites

Project Description

This package allows automatic scaling of too large images in Plone sites. Images can be either Image content type or any Image field on content types.

This is totally transparent to the user (except if you choose to show message).

There is also a view (@@resize-images) that you can call to scale existing images (under the context of your choice), for example :

Settings

  • Enable automatic scaling (yes / no)
  • Maximum height at which images will be automatically resized (in pixels)
  • Maximum width at which images will be automatically resized (in pixels)
  • Show information message to user when images have been resized (yes / no)

Use case

  1. You configure collective.autoscaling to have images with maximum size of height 800px / width 1200px.
  2. One of your user uploads a really big image : height 2000px / width 4000px.
  3. This image will be resized to height 600px / width 1200px (aspect ratio is of course preserved).

Limitations

This add-on works only with Dexterity content types.

It has been developed on Plone 4.3.7, but should work with Plone 5, too.

Translations

This product has been translated into

  • English
  • French
  • Norwegian
  • Portuguese

Installation

Install collective.autoscaling by adding it to your buildout:

[buildout]

...

eggs =
    collective.autoscaling

and then running bin/buildout

License

The project is licensed under the GPLv2.

Contributors

  • Laurent Lasudry, Original Author [Affinitic]
  • Espen Moe-Nilssen

Changelog

1.1.1 (2016-07-28)

  • Pin plone.api to avoid any errors (#2) [laulaz]
  • Add Portuguese translation [laulaz]

1.1 (2016-04-13)

  • Remove dependency on plone.app.imagecropping (#1) [laulaz]
  • Translations cleanup [laulaz]

1.0 (2016-04-11)

  • Initial release. [laulaz]
Release History

Release History

This version
History Node

1.1.1

History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.autoscaling-1.1.1.tar.gz (83.3 kB) Copy SHA256 Checksum SHA256 Source Jul 28, 2016

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