役に立ちましたか?

解決

これは、コンタクトシート関数 S.Lott をラップする関数です。

#!/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)

レシピ contactsheet.py 。使用法は次のとおりです。

fstrip = filmstrip.make_film_strip(filmstrip.fnames, (120, 120), (0,0,0,0), 0)
fstrip.save('/path/to/file.format')

テスト済み。

他のヒント

このようなことはありますか? PILを使用して「コンタクトシート」を作成します。画像の

おそらく、あなたが望むものに近い他のものがここにあります: http:// code .activestate.com / recipes / tags / graphics /

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top