Convert Between Numerical Arrays and PIL Image Objects

October 1998 | Fredrik Lundh

This module provides two helper functions that allow
you to convert between
Numerical Python (dead link)
arrays and
PIL
images. The fromstring/tostring approach may look a bit crude,
but experiments (by others) indicate that the result is about as fast
as it can get, on most modern platforms.