diff options
| -rw-r--r-- | scrape-codex.py | 3 |
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 = [] |
