diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:09:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:09:51 +0100 |
| commit | b6e5d4f629dd2e511789d9219a9912c1dd40806c (patch) | |
| tree | 924e56ea9c6fc673193bef6749ee31ef13e6e0c8 | |
| parent | f6f93fcbd69dba6b1dbe438e5cc92520f3ba3eee (diff) | |
aaa
| -rw-r--r-- | scrape-codex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scrape-codex.py b/scrape-codex.py index 5bfc77e..255195e 100644 --- a/scrape-codex.py +++ b/scrape-codex.py @@ -87,8 +87,8 @@ def grab(s, n): max_width = int(xml.split('Width="')[1].split('"')[0]) max_height = int(xml.split('Height="')[1].split('"')[0]) - TILE_W = floor(max_width / ZOOM) + 1 - TILE_H = floor(max_height / ZOOM) + 1 + TILE_W = floor((max_width / ZOOM) / 256) + 1 + TILE_H = floor((max_height / ZOOM) / 256) + 1 print("{}x{}".format(TILE_W, TILE_H)) dataset = [] |
