Django-imagefield

Latest version: v0.18.0

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

Scan your dependencies

Page 2 of 3

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.

0.9

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

- Fixed crashes because of image fields with ``None`` values.
- Fixed a case where an unsupported image was not detected early enough.
- Added a ``IMAGEFIELD_SILENTFAILURE`` setting for silent failure when
processing images crashes. The default value of this setting is
obviously ``False``. This is mostly useful when adding
``django-imagefield`` to a project which already has images (which may
not be processible by Pillow).
- Fixed the image verification to accept CMYK images again.
- Added Django 3.0 to the test matrix.
- Removed Python 3.4 from the test matrix.
- Ensure that ``icc_profile`` isn't passed if it is falsy. The WebP
encoder didn't like ``icc_profile=None``.
- Stopped including image fields of swapped models in ``IMAGEFIELDS``.
- Replaced ``ugettext*`` with ``gettext*``.
- Added an experimental websafe processor spec.

0.8

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

- **BACKWARDS INCOMPATIBLE**: Changed processing to pass additional
processors' arguments as positional arguments instead of as a single
list. This change only affects custom processors, no changes are
necessary for users of the library, except if for example you passed
arguments to processors such as ``default``, ``autorotate`` etc.
- Fixed a test to assume less about the error message for corrupt
images.
- Localize the corrupt image validation errors.
- Stopped calling the storage's ``delete()`` method for non-existing
images.
- Made the field resilient against NULL values from the database.

0.7

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

- Made error reporting in ``process_imagefields`` include more info.
- Made image field validation catch errors while determining the image
dimension too.
- Fixed a problem where older versions of Django didn't allow specifying
the chunk size for iterating over querysets.
- Modified django-imagefield's internals to allow changing the type and
extension of generated images by way of dynamically specifying the
processing pipeline.
- Changed the API of the ``get_image`` callable in processors to only
return the image without the context (since the context is mutable and
available already).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.