From 7d1f5c9dd4d2a215b4e030ccb0b2d94b11029c9d Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 17 Aug 2023 13:25:39 +0800 Subject: [PATCH] fixed variables for getplaceimage --- stockTicker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stockTicker.py b/stockTicker.py index 178b0c7..abdeaf6 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -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