aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-21 12:38:12 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-21 12:38:12 -0700
commit0cdebda7fc533384bd725412365325edcbeb038c (patch)
tree370aa8302ebe10af21f2a21e2b7b28b1cd4754c3
parentf397ef118f8ce861ebb7c92817bd4fdddf4201c3 (diff)
downloadmediagoblin-0cdebda7fc533384bd725412365325edcbeb038c.tar.lz
mediagoblin-0cdebda7fc533384bd725412365325edcbeb038c.tar.xz
mediagoblin-0cdebda7fc533384bd725412365325edcbeb038c.zip
only use the width for video thumbnails to keep the correct scaling
-rw-r--r--mediagoblin/media_types/video/processing.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py
index ee03d949..ed224251 100644
--- a/mediagoblin/media_types/video/processing.py
+++ b/mediagoblin/media_types/video/processing.py
@@ -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...')