]> git.parisson.com Git - teleforma.git/commitdiff
no preview scaling (on ubuntu 11.10 dwebp)
authoryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 00:30:46 +0000 (02:30 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 00:30:46 +0000 (02:30 +0200)
teleforma/views.py

index bbf646e1d03b79e1535fe02d71a6a17434902f64..25cc5e1c183a6e257588255af429234b05c34a2f 100755 (executable)
@@ -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)