add oxposterframe, create 8 line timeline
This commit is contained in:
parent
b2c553fd36
commit
9f489d306b
3 changed files with 72 additions and 5 deletions
|
|
@ -138,16 +138,23 @@ def createTimelineMultiline(timeline_prefix, width=600, height=16):
|
|||
width = duration - (lines - 1) * lineWidth
|
||||
box = ((0, offset , width, offset + timlelineHeight))
|
||||
i.paste(timelineColor, box)
|
||||
timeline_file = '%s.timeline.overview.png' % (timeline_prefix)
|
||||
timeline_file = '%s.overview.png' % (timeline_prefix)
|
||||
i.save(timeline_file, 'PNG')
|
||||
|
||||
timeline8_file = '%s.overview.8.png' % (timeline_prefix)
|
||||
if lines < 8:
|
||||
i.save(timeline8_file, 'PNG')
|
||||
else:
|
||||
i.crop((0,0,lineWidth, 8 * lineHeight)).save(timeline8_file, 'PNG')
|
||||
|
||||
|
||||
def makeTimelineByFramesPerPixel(timeline_prefix, frames_per_pixel, inpoint=0, outpoint=0, height=16):
|
||||
pos = 0
|
||||
input_scale = 25
|
||||
|
||||
timeline_file = '%s.timeline.%s.png' % (timeline_prefix, width)
|
||||
timeline_file = '%s.pixels.%s.png' % (timeline_prefix, width)
|
||||
if outpoint > 0:
|
||||
timeline_file = '%s.timeline.%s.%d-%d.png' % (timeline_prefix, width, inpoint, outpoint)
|
||||
timeline_file = '%s.pixels.%s.%d-%d.png' % (timeline_prefix, width, inpoint, outpoint)
|
||||
|
||||
timeline = loadTimeline(timeline_prefix)
|
||||
duration = timeline.size[0]
|
||||
|
|
@ -170,9 +177,9 @@ def makeTimelineByFramesPerPixel(timeline_prefix, frames_per_pixel, inpoint=0, o
|
|||
def makeTimelineOverview(timeline_prefix, width, inpoint=0, outpoint=0, duration=-1, height=16):
|
||||
input_scale = 25
|
||||
|
||||
timeline_file = '%s.timeline.%s.png' % (timeline_prefix, width)
|
||||
timeline_file = '%s.overview.%s.png' % (timeline_prefix, width)
|
||||
if outpoint > 0:
|
||||
timeline_file = '%s.timeline.%s.%d-%d.png' % (timeline_prefix, width, inpoint, outpoint)
|
||||
timeline_file = '%s.overview.%s.%d-%d.png' % (timeline_prefix, width, inpoint, outpoint)
|
||||
|
||||
timeline = loadTimeline(timeline_prefix)
|
||||
duration = timeline.size[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue