Update src/pretix/helpers/thumb.py

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Raphael Michel
2025-09-09 14:34:32 +02:00
committed by GitHub
co-authored by Richard Schreiber
parent 82d4a09da9
commit b8dbda4eb4
+1 -1
View File
@@ -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: