Skip to content

Commit 5e94ef2

Browse files
committed
Fixed django#18374 -- Explained "corrupt image" error
Thanks fabian and charettes.
1 parent 8015593 commit 5e94ef2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/ref/forms/fields.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,11 @@ For each field, we describe the default widget used if you don't specify
591591
* Error message keys: ``required``, ``invalid``, ``missing``, ``empty``,
592592
``invalid_image``
593593

594-
Using an ImageField requires that the `Python Imaging Library`_ is installed.
594+
Using an ``ImageField`` requires that the `Python Imaging Library`_ (PIL)
595+
is installed and supports the image formats you use. If you encounter a
596+
``corrupt image`` error when you upload an image, it usually means PIL
597+
doesn't understand its format. To fix this, install the appropriate
598+
library and reinstall PIL.
595599

596600
When you use an ``ImageField`` on a form, you must also remember to
597601
:ref:`bind the file data to the form <binding-uploaded-files>`.

0 commit comments

Comments
 (0)