Welcome to django-versatileimagefield’s documentation!¶
A drop-in replacement for django’s ImageField that provides a flexible, intuitive and easily-extensible interface for creating new images from the one assigned to the field.
Click here for a quick overview of what it is, how it works and whether or not it’s the right fit for your project.
Compatibility¶
- Python:
- 2.7
- 3.3
- 3.4
- Django:
- 1.6.x
- 1.7.x
- 1.8.x
- Pillow >= 2.4.0
- Django REST Framework:
- 2.3.14
- 2.4.4
- 3.0.x
- 3.1.x
Table of Contents¶
Release Notes¶
1.0.1¶
- Squashed a critical bug in OnDiscPlaceholderImage
1.0¶
- Added support for Django 1.8.
- Numerous documentation edits/improvements.
0.6.2¶
- Squashed a bug that caused the javascript ‘click’ widget to fail to initialize correctly when multiple VersatileImageFields were displayed on the same page in the admin.
- Added django.contrib.staticfiles integration to widgets.
0.6.1¶
- Squashed a bug that was throwing an
AttributeErrorwhen uploading new images.
0.6¶
- Squashed a bug that raised a
ValueErrorin the admin when editing a model instance with aVersatileImageFieldthat specifiedppoi_field,width_fieldandheight_field. - Admin ‘click’ widget now works in Firefox.
django-versatileimagefieldis now available for installation via wheel.
0.5.4¶
- Squashed a bug that was causing the admin ‘click’ widget to intermittently fail
- Simplified requirements installation (which makes django-versatileimagefield installable by
pip<=1.6)
0.5.3¶
- Changed
PPOIFieldto beeditable=Falseby default to address a bug that consistently raisedValidationErrorin ModelForms and the admin
0.5.2¶
- Squashed a bug that prevented
PPOIFieldfrom serializing correctly
0.5.1¶
- Squashed an installation bug with
pip6+
0.5¶
- Added Python 3.3 & 3.4 compatibility
- Improved cropping with extreme PPOI values
0.4¶
- Dropped support for Django 1.5.x
- Introducing per-field placeholder image image support! (Note: global placeholder support has been deprecated.)
- Added the
VERSATILEIMAGEFIELD_USE_PLACEHOLDITsetting (docs)
0.3.1¶
- Squashed a pip installation bug.
0.3¶
- Added a test suite with Travis CI and coveralls integration.
- Introduced support for Django REST Framework 3.0 serialization.
0.2.1¶
- Ensuring admin widget-dependent thumbnail images are created even if
VERSATILEIMAGEFIELD_SETTINGS['create_on_demand']is set toFalse
0.2¶
- Introduced Django REST Framework support!
- Added ability to turn off on-demand image creation and pre-warm images to improve performance.
0.1.5¶
- Squashed
CroppedImagebug that was causing black stripes to appear on crops of images with PPOI values that were to the right and/or bottom of center (greater-than 0.5).
0.1.4¶
- Overhauled how
CroppedImageprocesses PPOI value when creating cropped images. This new approach yields significantly more accurate results than using the previously utilizedImageOps.fitfunction, especially when dealing with PPOI values located near the edges of an image or aspect ratios that differ significantly from the original image. - Improved PPOI validation
- Squashed unset
VERSATILEIMAGEFIELD_SETTINGS['global_placeholder_image']bug. - Set
cropSizer default resample to PIL.Image.ANTIALIAS
0.1.3¶
- Added support for auto-rotation during pre-processing as dictated by ‘Orientation’ EXIF data, if available.
- Added release notes to docs
0.1.1¶
- Converted giant README into Sphinx-friendly RST
- Docs added to readthedocs
0.1¶
- Initial open source release