From 1773a4dde58b2b9d0591318a6df819c4b0704ea3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 19:19:03 +0100 Subject: aaa --- scrape-codex.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scrape-codex.py') diff --git a/scrape-codex.py b/scrape-codex.py index 931c648..d4dcb14 100644 --- a/scrape-codex.py +++ b/scrape-codex.py @@ -89,6 +89,9 @@ def grab(s, n): TILE_W = floor((max_width / ZOOM) / 256) + 1 TILE_H = floor((max_height / ZOOM) / 256) + 1 + if TILE_W < TILE_H: + TILE_W += 1 + TILE_H += 1 print("{}x{}".format(TILE_W, TILE_H)) dataset = [] -- cgit v1.2.3-70-g09d2