self.full_tile_widths[0] can be 0
This commit is contained in:
parent
150639ced3
commit
8a2f6085ed
1 changed files with 5 additions and 4 deletions
|
@ -389,6 +389,7 @@ class Timelines():
|
||||||
self.full_tile_image = Image.new('RGB', (self.full_tile_w, self.large_tile_h))
|
self.full_tile_image = Image.new('RGB', (self.full_tile_w, self.large_tile_h))
|
||||||
|
|
||||||
def _save_full_tile_image(self, mode):
|
def _save_full_tile_image(self, mode):
|
||||||
|
if self.full_tile_widths[0] > 0 and self.large_tile_h > 0:
|
||||||
resized = self.large_tile_image[mode].resize((
|
resized = self.large_tile_image[mode].resize((
|
||||||
self.full_tile_widths[0], self.large_tile_h
|
self.full_tile_widths[0], self.large_tile_h
|
||||||
), Image.ANTIALIAS)
|
), Image.ANTIALIAS)
|
||||||
|
|
Loading…
Reference in a new issue