Personal tools
You are here: Home Documentation Error References IOError: decoder jpeg not available
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

IOError: decoder jpeg not available

This Error Reference applies to: Any version.
This Error Reference is intended for: Any audience.

You've installed the Python Imaging Libraries (PIL). Yet when you upload or manipulate an image, you get the error message: IOError: decoder jpeg not available.

This probably means that PIL doesn't have JPEG support, because libjpeg wasn't found when PIL was being configured.

Suggestions

  • Doublecheck the configuration of PIL.
  • Change JPEG_ROOT in PIL's setup.py file to point to the directory where libjpeg is installed. See the comments in the file for details.
  • Check that your program is picking up the _imaging module that you've built, and not some older version:
$ python -vv -c "import _imaging"

If you are on Mac OS X, there is a document explaining how to get libjpeg installed properly here.

by Rene Pijlman last modified August 31, 2007 - 21:33
Contributors: Fredrik Lundh, Alexander Limi
All content is copyright Plone Foundation and the individual contributors.

try python setup.py build --force

Posted by Richard Barrett at December 12, 2007 - 02:45
In some circustances, having once built the shared library _imaging.so, the Python distutils package decides that there is nothing to do when python setup.py build is rerun even though values assigned in setup.py have changed. Running python setup.py clean does not appear to reverse that calculation. However, running python setup.py build --force does cause a change of heart.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by