Django-imagefield

Latest version: v0.21.0

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

Scan your dependencies

Page 2 of 4

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.

0.12

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

- **BACKWARDS INCOMPATIBLE**: Consolidated cache key generation in the
versatile image proxy and the admin widget code. Already cached values
will be checked again. Also, the cache timeout has been changed from
infinite (in case of the versatile image proxy) and 30 days (in case
of the admin widget) to a random value between 170 and 190 days. This
can be overridden by specifying the timeout as
``IMAGEFIELD_CACHE_TIMEOUT``. The setting may either be a value or a
callable.
- Fixed a pickle/unpickle crash.
- Closed image files in more places to avoid resource warnings.
- Dropped Django 1.8 from the build matrix. Supporting it in the
testsuite became annoying.
- Added verification of images even when not using forms.
- Ensured that configured fallbacks are also processed by
``process_imagefields``.
- Silenced more warnings when running the testsuite and generally
improved test coverage.
- Avoided setting the image field files' value too early when using
fallbacks.
- Added a new ``process_png`` processor which converts PNGs using
palettes to RGBA. This avoids ugly artefacts when resizing images.

0.11

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

- Changed the fallback facility to a keyword argument to the
``ImageField`` instance.
- Changed processing context creation to assign the ``name`` field
earlier.

0.10

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

- Added an experimental fallback facility for optional image fields.
- Allowed processor specs to return another processor spec in turn. This
allows layering processor specs.
- Changed the image field to set image file's extensions depending on
their image type. For example, a GIF uploaded as ``example.png`` will
automatically be saved as ``example.gif``.
- Improved test coverage a bit.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.