use full width for full timeline for short clips
This commit is contained in:
parent
008b1c0d81
commit
ce52615c26
1 changed files with 9 additions and 9 deletions
|
@ -544,7 +544,7 @@ class Timelines():
|
|||
|
||||
def _open_full_tile(self):
|
||||
if self.large_tile_n == 1:
|
||||
self.full_tile_widths = [self.large_tile_last_w]
|
||||
self.full_tile_widths = [self.full_tile_w]
|
||||
else:
|
||||
full_tile_w = self.full_tile_w
|
||||
full_tile_n = self.large_tile_n
|
||||
|
@ -559,6 +559,14 @@ class Timelines():
|
|||
self.full_tile_offset = 0
|
||||
self.full_tile_image = Image.new('RGB', (self.full_tile_w, self.large_tile_h))
|
||||
|
||||
def _save_full_tile_image(self, mode):
|
||||
resized = self.large_tile_image[mode].resize((
|
||||
self.full_tile_widths[0], self.large_tile_h
|
||||
), Image.ANTIALIAS)
|
||||
self.full_tile_image.paste(resized, (self.full_tile_offset, 0))
|
||||
self.full_tile_offset += self.full_tile_widths[0]
|
||||
self.full_tile_widths = self.full_tile_widths[1:]
|
||||
|
||||
def _save_full_tile(self, mode):
|
||||
self.log and self.profiler.set_task('_save_full_tile()')
|
||||
tile_file = '%stimeline%s%dp.jpg' % (
|
||||
|
@ -578,14 +586,6 @@ class Timelines():
|
|||
print tile_file
|
||||
self.log and self.profiler.unset_task()
|
||||
|
||||
def _save_full_tile_image(self, mode):
|
||||
resized = self.large_tile_image[mode].resize((
|
||||
self.full_tile_widths[0], self.large_tile_h
|
||||
), Image.ANTIALIAS)
|
||||
self.full_tile_image.paste(resized, (self.full_tile_offset, 0))
|
||||
self.full_tile_offset += self.full_tile_widths[0]
|
||||
self.full_tile_widths = self.full_tile_widths[1:]
|
||||
|
||||
def _save_tile(self, mode, index):
|
||||
self.log and self.profiler.set_task('_save_tile()')
|
||||
# save large tile (or data tile)
|
||||
|
|
Loading…
Reference in a new issue