Blog entries on January 2007

  • Mac OS X: decoder jpeg not available

    By Nuno Mariz, on 26 January 2007 @ 12:07
    If you are using PIL(Python Imaging Library) on Mac OS X(Tiger), you will probably have a "decoder jpeg not available" when resizing a jpeg image.
    This probably means that PIL doesn't have JPEG support, because libjpeg wasn't found when PIL was being configured.
    Here is the solution:
    • Download, compile and install jpeglib and zlib
    • Edit PIL setup.py and change to:
      JPEG_ROOT = "/usr/local/include"
      ZLIB_ROOT = "/usr/local/include"
      
    • Compile:
      python setup.py build_ext -i
      
    • Test:
      python selftest.py
      
    • If the result is something like this:
      "57 tests passed."
      
    • You are ready to go:
      python setup.py install
      
  • New year...

    By Nuno Mariz, on 10 January 2007 @ 00:21
    New year...
    New job...
    New programming language...
    New laptop...
    New life!