mirror of
https://github.com/pretix/pretix.git
synced 2026-08-01 09:25:09 +00:00
Update src/pretix/helpers/thumb.py
Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
co-authored by
Richard Schreiber
parent
82d4a09da9
commit
b8dbda4eb4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user