diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:19:03 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:19:03 +0100 |
| commit | 1773a4dde58b2b9d0591318a6df819c4b0704ea3 (patch) | |
| tree | 0d129603a48d276739caf4f8f74909cd27e94d2c | |
| parent | c43205503f5cec50c0b2dbcf49db24c5ded29a44 (diff) | |
aaa
| -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 = [] |
