Jesse's Development Blog: 2009 Archive

Oct. 5th, 2009

Announcing: django-calais v0.2

Launching a new django project called django-calais.

Sept. 5th, 2009

Simple word wrapping algorithm for Python's PIL

I recently found a need to use the Python Imaging library (PIL) to generate images containing sizable amounts of text. PIL is a very basic image library and has no support for typesetting. This is how I implemented the minimum length (greedy) algorithm, as detailed on Wikipedia.

All content licensed under a Creative Commons Attribution-Share Alike 3.0 License unless otherwise noted.