From ce52615c2642604aaef98bc8297ea6ab0e1ce166 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 21 Jun 2012 18:55:52 +0200 Subject: [PATCH] use full width for full timeline for short clips --- oxtimelines/timeline.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/oxtimelines/timeline.py b/oxtimelines/timeline.py index 2e888d2..d5f43e0 100644 --- a/oxtimelines/timeline.py +++ b/oxtimelines/timeline.py @@ -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)