Commit 5e94ef29 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Fixed #18374 -- Explained "corrupt image" error

Thanks fabian and charettes.
parent 8015593b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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>`.