[Image-SIG] PIL - numpy

Stephane Henry stef.henry at gmail.com
Wed Sep 20 15:13:08 CEST 2006

Hello everybody - bonjour tout le monde

do u have an idea why this code (from
http://effbot.org/zone/pil-changes-116.htm) doesn't work on my newly
upgraded machine?

import numpy, Image

i = Image.open('lena.jpg')
a = numpy.asarray(i) # a is readonly
i = Image.fromarray(a)

The versions seem OK :
>>> numpy.__version__
>>> Image.VERSION

sorry if that was allready discussed but I can't figure out how to
find something in the archives.


More information about the Image-SIG mailing list