only use the width for video thumbnails to keep the correct scaling
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 21 Aug 2013 19:38:12 +0000 (12:38 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Wed, 21 Aug 2013 19:38:12 +0000 (12:38 -0700)
mediagoblin/media_types/video/processing.py

index ee03d949a32f477c091826c5ee119007c3a68398..ed224251acebe65bb2d9fafddbad8821a914dfe1 100644 (file)
@@ -223,14 +223,13 @@ class CommonVideoProcessor(MediaProcessor):
                                      '{basename}.thumbnail.jpg'))
 
         if not thumb_size:
-            thumb_size = (mgg.global_config['media:thumb']['max_width'],
-                          mgg.global_config['media:thumb']['max_height'])
+            thumb_size = (mgg.global_config['media:thumb']['max_width'])
 
+        # We will only use the width so that the correct scale is kept
         transcoders.VideoThumbnailerMarkII(
             self.process_filename,
             tmp_thumb,
-            thumb_size[0],
-            thumb_size[1])
+            thumb_size[0])
 
         # Push the thumbnail to public storage
         _log.debug('Saving thumbnail...')