Plone.scale

Latest version: v4.1.3

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

Scan your dependencies

Page 4 of 8

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)

3.0.3

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

Bug fixes:

- reduce warnings in tests [jensens]

3.0.2

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

Bug fixes:

- Fix cleanup of image scales in py3
[pbauer]

3.0.1

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

Bug fixes:

- Fix conflict resolution code corner case.
[gforcada]

3.0

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

Breaking changes:

- Restore scale down behaviour from 1.x series without the huge memory usage.
[fschulze]

New features:

- Handle TIFF images with alpha channels.
[fschulze]

2.2

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

New features:

- Python 3 compatibility.
[dhavlik]

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.