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>
This commit is contained in:
parent
e0a75e0c25
commit
a6245478c8
|
@ -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 New Issue