Saturday, July 18, 2009

JPEG and PNG thumbnailing

In need for a fast and good looking thumbnailing solution for PNG and JPEG bitmaps, I came across this interesting article about Python's PIL and its rivals (Epeg and Imagemagick), so I decided to bench these solutions myself (even more since the various possible resizing methods were not tested).

For my bench, the thumbnail size is 320x200, which is quite a big thumbnail, but why not... (time is in seconds)

I'm no Python fanboy, but it looks like Python Image Library (in Bicubic mode) offers the best ratio speed/quality when you need to create thumbnails from jpeg and png.