diff --git a/oxdbarchive/tools/extract_timeline.py b/oxdbarchive/tools/extract_timeline.py index 9d134a1..5a8960e 100755 --- a/oxdbarchive/tools/extract_timeline.py +++ b/oxdbarchive/tools/extract_timeline.py @@ -96,7 +96,7 @@ class GstTimeline: img = Image.fromstring('RGB',input_d, gst_buffer) img = img.resize((1, bar_height), Image.ANTIALIAS) self.frames += 1 - for i in range(height): + for i in range(bar_height): self.bar.putpixel((self.frames, i), img.getpixel((0,i))) if self.frames >= self.width_part and self.frames > 30: self.cropAndSave()