From: yomguy Date: Wed, 25 Jul 2012 00:30:46 +0000 (+0200) Subject: no preview scaling (on ubuntu 11.10 dwebp) X-Git-Tag: 0.8^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=100a15a5636e79b2277a62ae64e6bd2c93514aa6;p=teleforma.git no preview scaling (on ubuntu 11.10 dwebp) --- 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)