Django-imagefield

Latest version: v0.18.0

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

Scan your dependencies

Page 1 of 3

0.18

~~~~~~~~~~~~~~~~~

- Added Python 3.12, Django 5.0.
- Added an easy way to reduce the possibility of filename collisions.
Unfortunately, the hashing scheme used by default has bad uniqueness
properties. It's recommended to add ``IMAGEFIELD_BIN_DEPTH = 2`` to your
settings and regenerate all processed images, for example using
``process_imagefields --all``. The default may change in the future. For now
nothing changes, so there's no compatibility concerns.

0.17

~~~~~~~~~~~~~~~~~

- Added a force-WEBP spec.
- Added Django 4.1 and 4.2, Python 3.11.
- Dropped Django 4.0 from the CI (3.2 is still in there).
- Switched to hatch and ruff.
- Added globbing support to the ``process_imagefields`` management command.

0.16

~~~~~~~~~~~~~~~~~~~~

.. _0.16: https://github.com/matthiask/django-imagefield/compare/0.15...0.16

- Raised the minimum Pillow version to 9.0.
- Avoided a deprecation warning by using the ``PIL.Image.Resampling`` enum.

0.15

~~~~~~~~~~~~~~~~~~~~

.. _0.15: https://github.com/matthiask/django-imagefield/compare/0.14...0.15

- Dropped support for Python < 3.8, Django < 3.2.
- Added a simplistic workaround for ``IOError`` exceptions which still plague
Pillow when saving some JPEG files.

0.14

~~~~~~~~~~~~~~~~~~~~

.. _0.14: https://github.com/matthiask/django-imagefield/compare/0.13...0.14

- Renamed the main branch to ``main``.
- Reformatted the frontend code using prettier and checked it using ESLint.
- Fixed a crash which happened when the PPOI field contained an invalid value.
- Added saving files in their original format to ``verified``. Previously, some
images were accepted because they can be loaded but they could not be saved
later.
- Added Python 3.10, Django 4.0 to the CI.
- Dropped support for Python 2.7, Django 1.11.
- Added a warning when using ``ImageField(null=True)``.
- Started using pre-commit.

0.13

~~~~~~~~~~~~~~~~~~~~

- Started using ``ImageOps.exif_transpose`` introduced in Pillow 6.0 to
autorotate images.
- Allowed overriding the preview image for the form field by adding a
``"preview"`` spec to the field.
- Added descriptions when raising ``AttributeError`` exceptions.
- Fixed the alignment of file uploads when imagefields with PPOI widgets
are used within a fieldbox in the admin interface.
- Do not accept keys or attributes starting with underscores in the
versatile image proxy.
- Disallowed image format names starting with an underscore.
- Added ``IMAGEFIELD_VALIDATE_ON_SAVE`` to skip image validation when
using model-level methods. Only use this when you are absolutely 100%
sure that the images you are adding can be processed by Pillow.
- Switched from Travis CI to GitHub actions.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.