use python image library in blender 2.58

hallo,

does someone use the python image library in blender?
i cant include it. it should be part of the standart python pakage?

import Pil oder import Image failed. any ideas?
how can i use it if it is not included? in wich folder do i have to put it that it is accessable to al my scripts?

The PIL is not part of the python standard library, you should download it but the official release seems not good for python 3.2. If you use windows you can find here an unofficial build. Then you can refer to the directory where you installed the PIL (probably C:\Python32\Lib\site-packages if you have python 3.2 installed) from blender using these two lines:


import sys
sys.path.append("path_to_the_directory")

ah ok,

i thought is it a part of python. i also use linux, but i found also a version for linux.
also i think about checking out the pythonMagick library based on the imageMagick library.
it has some more functions and is also available vor python 3.x.

Hey,
i installed the unofficial pil pakage but haveproblems with importing the lib. i get the following error:

Attempted relative import in non-package

how do i have to import that it works?
at the moment it looks like this:


import os,sys
sys.path.append("C:/Python32/Lib/site-packages/PIL/")
import Image 

i copied the pil package to scripts/modules.

now i can import it with:

from PIL import Image