diff options
author | Krombel <krombel@krombel.de> | 2017-10-17 12:45:33 +0200 |
---|---|---|
committer | Krombel <krombel@krombel.de> | 2017-10-17 12:45:33 +0200 |
commit | a6245478c82d8bd2c9abea34b9ec4a94ccc5ed09 (patch) | |
tree | 4bcddb9a005331714e304f3696756a811cc786d4 /synapse/rest/media | |
parent | Merge pull request #2544 from matrix-org/luke/groups-invited-users (diff) | |
download | synapse-a6245478c82d8bd2c9abea34b9ec4a94ccc5ed09.tar.xz |
fix thumbnailing (#2548)
in commit 0e28281a the code for thumbnailing got refactored and the renaming of this variables was not done correctly. Signed-Off-by: Matthias Kesler <krombel@krombel.de>
Diffstat (limited to 'synapse/rest/media')
-rw-r--r-- | synapse/rest/media/v1/media_repository.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py index 515b3d3e74..057c925b7b 100644 --- a/synapse/rest/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py @@ -490,12 +490,12 @@ class MediaRepository(object): if t_type == "crop": t_byte_source = yield make_deferred_yieldable(threads.deferToThread( thumbnailer.crop, - r_width, r_height, t_type, + t_width, t_height, t_type, )) else: t_byte_source = yield make_deferred_yieldable(threads.deferToThread( thumbnailer.scale, - r_width, r_height, t_type, + t_width, t_height, t_type, )) if not t_byte_source: |