From 48e76973109bcd2831d8d072533eb3495f9f21f4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 2 Jan 2008 07:33:50 +0000 Subject: [PATCH] only one place to define height --- oxdbarchive/tools/extract_timeline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oxdbarchive/tools/extract_timeline.py b/oxdbarchive/tools/extract_timeline.py index 5f35998..9d134a1 100755 --- a/oxdbarchive/tools/extract_timeline.py +++ b/oxdbarchive/tools/extract_timeline.py @@ -94,8 +94,7 @@ class GstTimeline: self.bar = Image.new("RGB", (self.width_part + 1 ,bar_height)) img = Image.fromstring('RGB',input_d, gst_buffer) - height = 16 - img = img.resize((1, height), Image.ANTIALIAS) + img = img.resize((1, bar_height), Image.ANTIALIAS) self.frames += 1 for i in range(height): self.bar.putpixel((self.frames, i), img.getpixel((0,i)))