Django-imagefield

Latest version: v0.18.0

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

Scan your dependencies

Page 3 of 3

0.6

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

- Fixed a crash where unpickling image fields would fail.
- Changed ``process_imagefields`` to skip exclude model instances with
an empty image field.
- Changed the ``thumbnail`` processor to not upscale images.
- Made ``process_imagefields`` not load the whole queryset at once to
avoid massive slowdowns while determining the width and height of
images (if those fields aren't filled in yet).
- Added housekeeping options to ``process_imagefields``. The only method
implemented right now is ``--housekeep blank-on-failure`` which
empties image fields where processing fails.
- Changed ``process_imagefields`` to process items in a deterministic
order.
- Clarified the processors spec documentation a bit and added an example
how to write a processor of your own.

0.5

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

- Dropped support for using image fields without associated height and
width fields, because it is almost (?) always a really bad idea
performance-wise.
- Fixed a bug where processed image names on Python 2 were different
than those generated using Python 3. This bug affects only
installations still using Python 2. Rerun ``./manage.py
process_imagefields --all`` after upgrading.

0.4

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

- Added compatibility with Django 1.8 for prehistoric projects.
- Polished tests and docs a bit.

0.3

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

- **BACKWARDS INCOMPATIBLE**: Changed the filename generation method to
preserve the filename part of the original file for SEO purposes etc.
You should run ``./manage.py process_imagefields --all``, and
optionally empty the ``__processed__`` folder before doing that if you
do not want to keep old images around.
- Improved progress reporting in ``process_imagefields``.
- Added a call to ``instance.save()`` in ``process_imagefields`` so that
width and height fields are saved (if any).
- Added ``accept="image/*"`` attribute to the file upload widget.
- Replaced the full image in the admin widget with an ad-hoc thumbnail.
- Fixed a bug where blank imagefields would not work correctly in the
administration interface.
- Switched the preferred quote to ``"`` and started using `black
<https://pypi.org/project/black/>`_ to automatically format Python
code.

0.2

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

- Rename management command to ``process_imagefields``, and add
``--all`` option to process all imagefields.
- Fixed a bug where not all image fields from base classes were picked
up for processing by ``process_imagefields``.
- Added the ``IMAGEFIELD_AUTOGENERATE`` setting, which can be set to a
list of image fields (in ``app.model.field`` notation, lowercased) to
only activate automatic processing of images upon model creation and
update for a few specific fields, or to ``False`` to disable this
functionality for all fields.
- Added system checks which warn when ``width_field`` and
``height_field`` are not used.
- Changed ``process_imagefields`` to process image fields in
alphabetic order. Also, made cosmetic changes to the progress output.
- Added a test which verifies that generating processed image URLs is
not slowed down by potentially slow storages (e.g. cloud storage)
- Fixed the PPOI JavaScript to not crash when some imagefields have no
corresponding PPOI input.

0.1

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

- First release that should be fit for public consumption.


.. _0.1: https://github.com/matthiask/django-imagefield/commit/013b9a810fa6
.. _0.2: https://github.com/matthiask/django-imagefield/compare/0.1...0.2
.. _0.3: https://github.com/matthiask/django-imagefield/compare/0.2...0.3
.. _0.4: https://github.com/matthiask/django-imagefield/compare/0.3...0.4
.. _0.5: https://github.com/matthiask/django-imagefield/compare/0.4...0.5
.. _0.6: https://github.com/matthiask/django-imagefield/compare/0.5...0.6
.. _0.7: https://github.com/matthiask/django-imagefield/compare/0.6...0.7
.. _0.8: https://github.com/matthiask/django-imagefield/compare/0.7...0.8
.. _0.9: https://github.com/matthiask/django-imagefield/compare/0.8...0.9
.. _0.10: https://github.com/matthiask/django-imagefield/compare/0.9...0.10
.. _0.11: https://github.com/matthiask/django-imagefield/compare/0.10...0.11
.. _0.12: https://github.com/matthiask/django-imagefield/compare/0.11...0.12
.. _0.13: https://github.com/matthiask/django-imagefield/compare/0.12...0.13

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.