only paste into small timeline if it exists

This commit is contained in:
j 2016-09-15 15:13:16 +00:00
parent 750633eb7e
commit cf0fcdbc5f

View file

@ -75,6 +75,7 @@ def join_tiles(source_paths, durations, target_path):
data['target_images']['large'] = data['target_images']['large'].resize(
(w, small_tile_h), Image.ANTIALIAS
)
if data['target_images']['small']:
data['target_images']['small'].paste(
data['target_images']['large'], (small_tile_x, 0)
)