From b6e5d4f629dd2e511789d9219a9912c1dd40806c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 19:09:51 +0100 Subject: aaa --- scrape-codex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scrape-codex.py') 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 = [] -- cgit v1.2.3-70-g09d2