mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #18374 -- Explained "corrupt image" error
Thanks fabian and charettes.
This commit is contained in:
parent
8015593bc1
commit
5e94ef293c
@ -591,7 +591,11 @@ For each field, we describe the default widget used if you don't specify
|
||||
* Error message keys: ``required``, ``invalid``, ``missing``, ``empty``,
|
||||
``invalid_image``
|
||||
|
||||
Using an ImageField requires that the `Python Imaging Library`_ is installed.
|
||||
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
|
||||
doesn't understand its format. To fix this, install the appropriate
|
||||
library and reinstall 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>`.
|
||||
|
Loading…
Reference in New Issue
Block a user