Import Python library (image2gif)

Hi everyone!

For testing purposes, I’d like to use Touch to make a Gif from some pictures I take.

I found this Library (image2gif) in Python which seem to be just what I need. Problem is that I don’t know how to import it so I can use its methods.

I’ve searched on the Wiki but I found nothing that could help!

Can someone give me some hints?

Thanks in advance!

Jo

1 Like

Well, I managed to get the image2gif recognized by TD by puting it in bin/lib .

But image2gif use PIL Library to work, and I can’t get it installed…

When I launch the .exe from this link : lfd.uci.edu/~gohlke/pythonlibs/ the installer tell me that no python install were found and I can browse to chose the install folder…

So far this is what I have:

[code]from images2gif import writeGif
import sys
mypath = “C:\Program Files\Derivative\TouchDesigner088\bin\Lib\Pillow-2.5.3\PIL”
if mypath not in sys.path:
sys.path.append(mypath)

from PIL import Image
import os[/code]

I’m getting headache on it, every help would be much apreciated

Hi.
Have you tried installing a separate version of python on your machine, outside of TouchDesigner?
We find that makes installation easiest.

See this description on importing modules:

derivative.ca/wiki088/index. … ng_Modules

We have had PIL importing easily through this method.
It also keeps your TouchDesigner installation clean.
Adding files to bin/lib causes issues between the operating system and installer we find.

Hope that helps,
Rob.