
How to generate a filmstrip image in python from a folder of images
By: a guest on
Feb 27th, 2012 | syntax:
None | size: 0.56 KB | hits: 26 | expires: Never
#!/usr/bin/env python
import os, os.path
from contactsheet import make_contact_sheet
def make_film_strip(fnames,
(photow,photoh),
(marl,mart,marr,marb),
padding):
return make_contact_sheet(fnames,
(1, len(fnames)),
(photow,photoh),
(marl,mart,marr,marb),
padding)
fstrip = filmstrip.make_film_strip(filmstrip.fnames, (120, 120), (0,0,0,0), 0)
fstrip.save('/path/to/file.format')