mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #19934 - Use of Pillow is now preferred over PIL.
This starts the deprecation period for PIL (support to end in 1.8).
This commit is contained in:
parent
c792c83cad
commit
33793f7c3e
13 changed files with 198 additions and 66 deletions
|
@ -608,19 +608,21 @@ For each field, we describe the default widget used if you don't specify
|
|||
* Normalizes to: An ``UploadedFile`` object that wraps the file content
|
||||
and file name into a single object.
|
||||
* Validates that file data has been bound to the form, and that the
|
||||
file is of an image format understood by PIL.
|
||||
file is of an image format understood by Pillow/PIL.
|
||||
* Error message keys: ``required``, ``invalid``, ``missing``, ``empty``,
|
||||
``invalid_image``
|
||||
|
||||
Using an ``ImageField`` requires that the `Python Imaging Library`_ (PIL)
|
||||
is installed and supports the image formats you use. If you encounter a
|
||||
``corrupt image`` error when you upload an image, it usually means PIL
|
||||
Using an ``ImageField`` requires that either `Pillow`_ (recommended) or the
|
||||
`Python Imaging Library`_ (PIL) are installed and supports the image
|
||||
formats you use. If you encounter a ``corrupt image`` error when you
|
||||
upload an image, it usually means either Pillow or PIL
|
||||
doesn't understand its format. To fix this, install the appropriate
|
||||
library and reinstall PIL.
|
||||
library and reinstall Pillow or PIL.
|
||||
|
||||
When you use an ``ImageField`` on a form, you must also remember to
|
||||
:ref:`bind the file data to the form <binding-uploaded-files>`.
|
||||
|
||||
.. _Pillow: http://python-imaging.github.io/Pillow/
|
||||
.. _Python Imaging Library: http://www.pythonware.com/products/pil/
|
||||
|
||||
``IntegerField``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue