From 100a15a5636e79b2277a62ae64e6bd2c93514aa6 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 25 Jul 2012 02:30:46 +0200 Subject: [PATCH] no preview scaling (on ubuntu 11.10 dwebp) --- teleforma/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/teleforma/views.py b/teleforma/views.py index bbf646e1..25cc5e1c 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -417,7 +417,7 @@ class ConferenceRecordView(FormView): if server_type == 'stream-m': #FIXME: # self.snapshot(stream.snapshot_url, station.output_dir) - self.snapshot('http://localhost:8080/snapshot/safe', station.output_dir) + self.snapshot('http://'+status.ip+'localhost:8080/snapshot/safe', station.output_dir) try: self.push(self.conference) @@ -434,8 +434,7 @@ class ConferenceRecordView(FormView): f = open(path, 'w') f.write(img.read()) f.close() - command = '/usr/bin/dwebp ' + path + ' -scale ' + str(width) + ' ' + str(height) + \ - ' -o ' + dir + os.sep + 'preview.png &' + command = '/usr/bin/dwebp ' + path + ' -o ' + dir + os.sep + 'preview.png &' os.system(command) @method_decorator(login_required) -- 2.39.5