From b5665274832b97c299e53d7ab4b8acfb2d6d3b6e Mon Sep 17 00:00:00 2001 From: j Date: Sat, 7 Jan 2017 16:52:17 +0100 Subject: [PATCH] fix short timelines for multipart videos fixes #2985 --- pandora/item/timelines.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/timelines.py b/pandora/item/timelines.py index ba944dc9..ad89a975 100644 --- a/pandora/item/timelines.py +++ b/pandora/item/timelines.py @@ -181,6 +181,8 @@ def join_tiles(source_paths, durations, target_path): target_w += large_tile_w save_and_open(data) + if data['full_tile_offset'] < full_tile_w: + data['target_images']['full'] = data['target_images']['full'].crop((0,0, data['full_tile_offset'], large_tile_h)) # save full timelines image_file = '%stimeline%s%dp.jpg' % (target_path, full_tile_mode, large_tile_h) data['target_images']['full'].save(image_file)