mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 06:33:14 +03:00
Merge pull request #2550 from krombel/fix_thumbnail_2548
fix thumbnailing (#2548)
This commit is contained in:
commit
fe6e9f580b
1 changed files with 2 additions and 2 deletions
|
@ -490,12 +490,12 @@ class MediaRepository(object):
|
||||||
if t_type == "crop":
|
if t_type == "crop":
|
||||||
t_byte_source = yield make_deferred_yieldable(threads.deferToThread(
|
t_byte_source = yield make_deferred_yieldable(threads.deferToThread(
|
||||||
thumbnailer.crop,
|
thumbnailer.crop,
|
||||||
r_width, r_height, t_type,
|
t_width, t_height, t_type,
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
t_byte_source = yield make_deferred_yieldable(threads.deferToThread(
|
t_byte_source = yield make_deferred_yieldable(threads.deferToThread(
|
||||||
thumbnailer.scale,
|
thumbnailer.scale,
|
||||||
r_width, r_height, t_type,
|
t_width, t_height, t_type,
|
||||||
))
|
))
|
||||||
|
|
||||||
if not t_byte_source:
|
if not t_byte_source:
|
||||||
|
|
Loading…
Reference in a new issue