Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #18374 -- Explained "corrupt image" error

Thanks fabian and charettes.
  • Loading branch information...
commit 5e94ef293cb1cfe4dc43cbd5509653c0e0bf66cf 1 parent 8015593
Aymeric Augustin authored July 08, 2012

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  docs/ref/forms/fields.txt
6  docs/ref/forms/fields.txt
@@ -591,7 +591,11 @@ For each field, we describe the default widget used if you don't specify
591 591
     * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``,
592 592
       ``invalid_image``
593 593
 
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.
595 599
 
596 600
     When you use an ``ImageField`` on a form, you must also remember to
597 601
     :ref:`bind the file data to the form <binding-uploaded-files>`.

0 notes on commit 5e94ef2

Please sign in to comment.
Something went wrong with that request. Please try again.