Guest User

How to generate a filmstrip image in python from a folder of images

a guest
Feb 27th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import os, os.path
  4. from contactsheet import make_contact_sheet
  5.  
  6. def make_film_strip(fnames,
  7. (photow,photoh),
  8. (marl,mart,marr,marb),
  9. padding):
  10. return make_contact_sheet(fnames,
  11. (1, len(fnames)),
  12. (photow,photoh),
  13. (marl,mart,marr,marb),
  14. padding)
  15.  
  16. fstrip = filmstrip.make_film_strip(filmstrip.fnames, (120, 120), (0,0,0,0), 0)
  17. fstrip.save('/path/to/file.format')
Add Comment
Please, Sign In to add comment