summaryrefslogtreecommitdiff
path: root/scrape-codex.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-25 19:19:03 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-25 19:19:03 +0100
commit1773a4dde58b2b9d0591318a6df819c4b0704ea3 (patch)
tree0d129603a48d276739caf4f8f74909cd27e94d2c /scrape-codex.py
parentc43205503f5cec50c0b2dbcf49db24c5ded29a44 (diff)
aaa
Diffstat (limited to 'scrape-codex.py')
-rw-r--r--scrape-codex.py3
1 files changed, 3 insertions, 0 deletions
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 = []