Text to JPG. How to

Miki Tebeka tebeka at cs.bgu.ac.il
Wed Feb 5 03:42:55 EST 2003


Hello,
> Still new at this and just wondering if I should pursue this little side 
> project using Python.
> 
> Objective:
> request text from user via gui(tk entry box)
> convert text into a jpg (160x120 lowres)
> save jpg
> 
> enhancments:
> display preview of jpg
> abilty to change fonts colours etc
> recall previously saved text's
> 
> Q how difficult would this be to implement using Python,tk and PIL ?
> 
> I pretty much have tk sorted out but havent looked at PIL yet.
> not sure how to go about converting text to jpg
http://www.pythonware.com/library/pil/handbook/imagedraw.htm
See the 'text' function.

HTH.
Miki




More information about the Python-list mailing list