2012/07/13

IOError: decoder jpeg not available

Currently PIL is not easy to work with Plone, that is why there is a PIL fork for this issue. The common error message looks like this:

ERROR root could not scale ImageField "image" ...
...
IOError: decoder jpeg not available
...
AttributeError: image_mini

Here is my environment running into this issue:

  • Plone 4.0.7
  • Ubuntu 12.04

A quick search leads me to an answer. My working fix is like this:

  • edit buildout.cfg to pin version: Pillow = 1.7.5
  • remove the installed Pillow 1.7.2 and re-run buildout

If everything goes well, you should see JPEG support available after downloading Pillow.

No comments: