From b8dbda4eb4e1ce82b23dac8381b8d24b86f1b24a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 9 Sep 2025 14:34:32 +0200 Subject: [PATCH] Update src/pretix/helpers/thumb.py Co-authored-by: Richard Schreiber --- src/pretix/helpers/thumb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/helpers/thumb.py b/src/pretix/helpers/thumb.py index bd5f11e9b0..eda30c920e 100644 --- a/src/pretix/helpers/thumb.py +++ b/src/pretix/helpers/thumb.py @@ -134,7 +134,7 @@ def get_sizes(size, imgsize): wfactor = min(1, size[0] / imgsize[0]) hfactor = min(1, size[1] / imgsize[1]) - limited_by_input = size[1] / imgsize[1] > 1.0 and size[0] / imgsize[0] > 1.0 + limited_by_input = size[1] > imgsize[1] and size[0] > imgsize[0] print(size, imgsize, size[1] / imgsize[1], size[0] / imgsize[0], limited_by_input) if crop: