oxtimeline/oximage/movie_icon.py

19 lines
635 B
Python
Raw Normal View History

2010-09-17 14:40:10 +00:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import sys
from optparse import OptionParser
from imagetools import render_movie_icon
def main():
parser = OptionParser()
parser.add_option('-f', '--frame', dest='frame', help='Poster frame (image file to be read)')
parser.add_option('-l', '--timeline', dest='frame', help='Timeline (image file to be read)')
parser.add_option('-i', '--icon', dest='icon', help='Icon (image file to be written)')
(options, args) = parser.parse_args()
if options['icon'] == None:
parser.print_help()
sys.exit()
render_movie_icon(options)