]> www.vanbest.org Git - motioneye-debian/commitdiff
antialias filter is painfully slow - using cubic filter instead
authorCalin Crisan <ccrisan@gmail.com>
Sun, 24 Nov 2013 16:59:07 +0000 (18:59 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 24 Nov 2013 16:59:07 +0000 (18:59 +0200)
src/mediafiles.py
templates/main.html

index df98a80622cd47d34d9f12d738f5f0fd248cc922..ab3ceb8aa56df314f25a5478b1e012cefc4236ff 100644 (file)
@@ -308,7 +308,7 @@ def get_current_picture(camera_config, width, height):
     if width >= image.size[0] and height >= image.size[1]:
         return jpg # no enlarging of the picture on the server side
     
-    image.thumbnail((width, height), Image.ANTIALIAS)
+    image.thumbnail((width, height), Image.CUBIC)
 
     sio = StringIO.StringIO()
     image.save(sio, format='JPEG')
index d58bbf344079eb9d77305fb587bb85b00d2903ac..b5abb87533f5832a7da9f6b7ff35b81111e43845 100644 (file)
                         <td class="settings-item-value"><input type="text" class="range styled streaming" id="streamingQualitySlider"></td>
                         <td><span class="help-mark" title="sets the live streaming quality (higher values produce a better video quality but require more bandwidth)">?</span></td>
                     </tr>
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting local-streaming">
                         <td class="settings-item-label"><span class="settings-item-label">Streaming Resolution</span></td>
                         <td class="settings-item-value"><input type="text" class="range styled streaming" id="streamingResolutionSlider"></td>
                         <td><span class="help-mark" title="the streaming resolution given as percent of the video device resolution (higher values produce better video quality but require more bandwidth)">?</span></td>