fixed variables for getplaceimage

This commit is contained in:
Justin 2023-08-17 13:25:39 +08:00 committed by GitHub
parent 228ae9bdf0
commit 7d1f5c9dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5623,7 +5623,7 @@ class StockTicker():
max_y = img.height - 32
x = random.randint(0, max_x)
y = random.randint(0, max_y)
snapshot = img.crop((x, y, x + snapshot_width, y + snapshot_height))
snapshot = img.crop((x, y, x + int(all_settings['width']), y + 32))
imgs.append(snapshot)
except:
pass