forked from 0x2620/pandora
more timeline names
This commit is contained in:
parent
f33f4ba45e
commit
055a2b6482
1 changed files with 3 additions and 2 deletions
|
@ -334,7 +334,8 @@ def cuts(prefix):
|
|||
height = 64
|
||||
width = 1500
|
||||
pixels = []
|
||||
for image in sorted(glob("%s.%d.*.png" % (prefix, height))):
|
||||
timelines = sorted(filter(lambda t: t!= '%s%sp.png'%(prefix,height), glob("%s%sp*.png"%(prefix, height))))
|
||||
for image in timelines:
|
||||
timeline = Image.open(image)
|
||||
frames += timeline.size[0]
|
||||
pixels.append(timeline.load())
|
||||
|
@ -418,7 +419,7 @@ def timeline_strip(item, cuts, info, prefix):
|
|||
if len(line_image) > frame:
|
||||
timeline_image.paste(line_image[frame], (x, 0))
|
||||
if x == timeline_width - 1:
|
||||
timeline_file = '%sstrip.64.%04d.png' % (prefix, i)
|
||||
timeline_file = '%sStrip64p%04d.png' % (prefix, i)
|
||||
if _debug:
|
||||
print 'writing', timeline_file
|
||||
timeline_image.save(timeline_file)
|
||||
|
|
Loading…
Reference in a new issue