ImageField not validating due to missing libraries
|Reported by:||fabian@…||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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
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.
Change History (12)
comment:1 Changed 22 months ago by charettes
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 21 months ago by aaugustin
comment:8 Changed 21 months ago by charettes
- Triage Stage changed from Accepted to Ready for checkin