Simple photo collage using Python and PIL

Callum Prentice callum at
Wed Nov 23 01:10:10 CET 2005

i need a "script" that i can use locally as well as online that will:

* create a large (maybe something like 2k x 2k) master image in memory
* open a text file and read all the lines from it (maybe 1000 lines
* each line is composed of an x, y, name and a png image filename
* for each line,  open the png image and position it in the master
image at the location given by x & y
* save off the master image to a png at the end

i've been told python and the python image library can help me - i
haven't used either before so can anyone give me some pointers to get
me started please - it feels like it's probably just a few lines of
code for an expert (no validation required - i'll be the only one using

any help much appreciated.

-- cal

More information about the Python-list mailing list