Automatic scaling of (too large) images in Plone sites
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 :
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)
You configure collective.autoscaling to have images with maximum size of height 800px / width 1200px.
One of your user uploads a really big image : height 2000px / width 4000px.
This image will be resized to height 600px / width 1200px (aspect ratio is of course preserved).
This add-on works only with Dexterity content types.
It has been developed on Plone 4.3, but works with Plone 5 and Plone 6 too. Current branch is tested on Python 3 / Plone 6.
This product has been translated into
Install collective.autoscaling by adding it to your buildout:
[buildout] ... eggs = collective.autoscaling
and then running bin/buildout
Issue Tracker: https://github.com/collective/collective.autoscaling/issues
Source Code: https://github.com/collective/collective.autoscaling
The project is licensed under the GPLv2.
Laurent Lasudry, Original Author [Affinitic]
Fix resize-images view that was saving nothing because of CSRF protection [laulaz]
Add support for Python 3 / Plone 6 [marclava, laulaz]
Add new JPEG Quality setting [marclava]
Improve resizing code [marclava]
Add uninstall profile [laulaz]
Handle special cases when we don’t get a request at ObjectAddedEvent (example : when an object is added at Zope startup) [laulaz]
Remove useless dependency on CMFDefault (#5) [laulaz]
Pin plone.api to avoid any errors (#2) [laulaz]
Add Portuguese translation [laulaz]
Remove dependency on plone.app.imagecropping (#1) [laulaz]
Translations cleanup [laulaz]
Initial release. [laulaz]
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for collective.autoscaling-1.2.tar.gz