#18374: ImageField not validating due to missing libraries
--------------------------------------+--------------------
Reporter: fabian@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
IMHO, it is worth to be mentioned in the documentation that `libjpeg` must
be available on the system PRIOR to PIL being installed.
Else, validating a form with an `ImageField` will fail with `corrupt
image` error, due to `django/forms/fields.py` plays down the Exception in
line 592, which most probably is `IOError: "decoder jpeg not available"`
On a Mac, it can be easily downloaded on
http://ethan.tira-thompson.com/Mac_OS_X_Ports.html
On most Linux distributions, `libjpeg-dev` is available in the
repositories.
Afterwards, PIL must be re-compiled and -installed in order to let it know
about it.
--
Ticket URL: <https://code.djangoproject.com/ticket/18374>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.