From 90cf974ba070b53152246c282c4017221597e60c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Oct 2011 20:27:31 +0200 Subject: [PATCH] timelines should be RGB --- oxtimeline/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxtimeline/__init__.py b/oxtimeline/__init__.py index 75838ce..f48de0a 100644 --- a/oxtimeline/__init__.py +++ b/oxtimeline/__init__.py @@ -28,7 +28,7 @@ def loadTimeline(timeline_prefix, height=64): width = f.size[0] f = Image.open(files[-1]) duration = f.size[0] + (len(files)-1)*width - timeline = Image.new("RGBA", (duration, height)) + timeline = Image.new("RGB", (duration, height)) pos = 0 for f in files: part = Image.open(f) @@ -136,7 +136,7 @@ def makeTiles(timeline_prefix, height=16, width=3600): part_step = 60 output_width = width width = len(files) * part_step - timeline = Image.new("RGBA", (width, height)) + timeline = Image.new("RGB", (width, height)) pos = 0 for f in sorted(files):