more timeline names

This commit is contained in:
j 2011-10-21 20:10:24 +02:00
parent f33f4ba45e
commit 055a2b6482

View file

@ -334,7 +334,8 @@ def cuts(prefix):
height = 64 height = 64
width = 1500 width = 1500
pixels = [] 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) timeline = Image.open(image)
frames += timeline.size[0] frames += timeline.size[0]
pixels.append(timeline.load()) pixels.append(timeline.load())
@ -418,7 +419,7 @@ def timeline_strip(item, cuts, info, prefix):
if len(line_image) > frame: if len(line_image) > frame:
timeline_image.paste(line_image[frame], (x, 0)) timeline_image.paste(line_image[frame], (x, 0))
if x == timeline_width - 1: if x == timeline_width - 1:
timeline_file = '%sstrip.64.%04d.png' % (prefix, i) timeline_file = '%sStrip64p%04d.png' % (prefix, i)
if _debug: if _debug:
print 'writing', timeline_file print 'writing', timeline_file
timeline_image.save(timeline_file) timeline_image.save(timeline_file)