[Image-SIG] Python Imaging

Fredrik Lundh fredrik@pythonware.com
Fri, 4 Feb 2000 14:01:15 +0100


Rosshop@aol.com wrote:
> I downloaded python imaging and i don't understand how to get an image =

> embeded into python to use.  Can you help me out???

not sure what you mean by "embedded"...

the usual way is to load images from disk, as
described in the PIL tutorial.

to embed images to python source code, you can
convert them to strings using a suitable method (e.g.
base64), and use the StringIO module to handle those
strings like files.

also see the image2py.py sample in the Scripts directory
which converts an image to python source code, using
that technique.

</F>