only use the width for video thumbnails to keep the correct scaling
This commit is contained in:
parent
f397ef118f
commit
0cdebda7fc
@ -223,14 +223,13 @@ class CommonVideoProcessor(MediaProcessor):
|
|||||||
'{basename}.thumbnail.jpg'))
|
'{basename}.thumbnail.jpg'))
|
||||||
|
|
||||||
if not thumb_size:
|
if not thumb_size:
|
||||||
thumb_size = (mgg.global_config['media:thumb']['max_width'],
|
thumb_size = (mgg.global_config['media:thumb']['max_width'])
|
||||||
mgg.global_config['media:thumb']['max_height'])
|
|
||||||
|
|
||||||
|
# We will only use the width so that the correct scale is kept
|
||||||
transcoders.VideoThumbnailerMarkII(
|
transcoders.VideoThumbnailerMarkII(
|
||||||
self.process_filename,
|
self.process_filename,
|
||||||
tmp_thumb,
|
tmp_thumb,
|
||||||
thumb_size[0],
|
thumb_size[0])
|
||||||
thumb_size[1])
|
|
||||||
|
|
||||||
# Push the thumbnail to public storage
|
# Push the thumbnail to public storage
|
||||||
_log.debug('Saving thumbnail...')
|
_log.debug('Saving thumbnail...')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user