always compute tile based on index, otherwise sometimes keyframes16p0 gets keyframes16p1
This commit is contained in:
parent
46a80d8418
commit
e0152e2c26
1 changed files with 4 additions and 3 deletions
|
@ -586,8 +586,8 @@ class Timelines():
|
||||||
# open small tile
|
# open small tile
|
||||||
if small_tile_x == 0:
|
if small_tile_x == 0:
|
||||||
image_mode = 'L' if mode == 'audio' else 'RGB'
|
image_mode = 'L' if mode == 'audio' else 'RGB'
|
||||||
self.small_tile_i = int(index / 60)
|
small_tile_i = int(index / 60)
|
||||||
if self.small_tile_i < self.small_tile_n - 1:
|
if small_tile_i < self.small_tile_n - 1:
|
||||||
w = self.small_tile_w
|
w = self.small_tile_w
|
||||||
else:
|
else:
|
||||||
w = self.small_tile_last_w
|
w = self.small_tile_last_w
|
||||||
|
@ -603,8 +603,9 @@ class Timelines():
|
||||||
self.small_tile_image[small_mode].paste(resized, paste)
|
self.small_tile_image[small_mode].paste(resized, paste)
|
||||||
# save small tile
|
# save small tile
|
||||||
if small_tile_x == self.small_tile_w - 60 or self.frame_i == self.frame_n - 1:
|
if small_tile_x == self.small_tile_w - 60 or self.frame_i == self.frame_n - 1:
|
||||||
|
small_tile_i = int(index / 60)
|
||||||
tile_file = '%stimeline%s%dp%d.jpg' % (
|
tile_file = '%stimeline%s%dp%d.jpg' % (
|
||||||
self.tile_path, small_mode, self.small_tile_h, self.small_tile_i
|
self.tile_path, small_mode, self.small_tile_h, small_tile_i
|
||||||
)
|
)
|
||||||
self.small_tile_image[small_mode].save(tile_file)
|
self.small_tile_image[small_mode].save(tile_file)
|
||||||
if self.log:
|
if self.log:
|
||||||
|
|
Loading…
Reference in a new issue