Plone.scale

Latest version: v4.1.2

Safety actively analyzes 629994 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

4.0.0a3

--------------------

Bug fixes:


- Fixed ``DeprecationWarning`` with Pillow 9.1.0 for ``ANTIALIAS``.
Use ``Resampling.LANCZOS``, falling back to ``ANTIALIAS`` on older Pillows.
[maurits] (49)

4.0.0a2

--------------------

Breaking changes:


- Removed deprecated ``factory`` argument from ``scale`` method.
This is in the ``AnnotationStorage`` class and the ``IImageScaleStorage`` interface.
This was already scheduled for removal in ``plone.scale`` 3.0, but was kept longer.
Fixes `issue 47 <https://github.com/plone/plone.scale/issues/47>`_.
[maurits] (47)

4.0.0a1

--------------------

Breaking changes:


- Removed docs directory and sphinx extra.
The docs were last updated in 2010, and the maybe still relevant parts already copied to the readme.
[maurits] (44)
- Removed ``tests`` extra, kept only ``test`` extra and ``storage``.
Swapped packages slightly between those two extras.
For ``storage`` we depend on ``persistent`` and ``ZODB``.
[maurits] (44)
- Depend on Pillow.
Originally we did not officially depend on it (or PIL) "because not everyone can install it as an egg".
It seems time to grow up here.
[maurits] (44)
- Removed Python 2 support. Only Python 3.6+ supported now.
Still works on Plone 5.2.
[maurits] (44)


New features:


- Add tox.ini with mxdev.
Test with GitHub Actions on Plone 5.2 Py + 3.6-3.8 and Plone 6.0 + Py 3.7-3.10.
[maurits] (44)

3.1.2

------------------

Bug fixes:


- Resolve deprecation warning [gforcada] (42)

3.1.1

------------------

Bug fixes:


- Minor packaging updates. (1)

3.1.0

------------------

New features:


- The ``mode`` argument replaces the old, now deprecated, ``direction`` argument.
The new names are ``contain`` or ``scale-crop-to-fit`` instead of ``down``,
``cover`` or ``scale-crop-to-fill`` instead of ``up``
and ``scale`` instead of ``thumbnail``.
[fschulze] (29)
- Added ``calculate_scaled_dimensions`` function to calculate sizes from bare values without actually scaling an image.
[fschulze]

Added ``MAX_PIXELS`` constant set to ``8192*8192`` to prevent memory overflow while scaling.
[fschulze] (37)


Bug fixes:


- Fix documentation of scaling modes to match it's behavior.
[thet] (39)

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.