diff --git a/large_image/tilesource/base.py b/large_image/tilesource/base.py index 3563bd17d..95c5bbced 100644 --- a/large_image/tilesource/base.py +++ b/large_image/tilesource/base.py @@ -925,12 +925,12 @@ def _tileIteratorInfo(self, **kwargs): False if round(requestedScale, 2) == 1.0 or kwargs.get('resample') in (None, False) else kwargs.get('resample')) # If we need to resample to make tiles at a non-native resolution, - # adjust the tile size and tile overlap paramters appropriately. + # adjust the tile size and tile overlap parameters appropriately. if resample is not False: - tile_size['width'] = max(1, int(round(tile_size['width'] * requestedScale))) - tile_size['height'] = max(1, int(round(tile_size['height'] * requestedScale))) - tile_overlap['x'] = int(round(tile_overlap['x'] * requestedScale)) - tile_overlap['y'] = int(round(tile_overlap['y'] * requestedScale)) + tile_size['width'] = max(1, int(math.ceil(tile_size['width'] * requestedScale))) + tile_size['height'] = max(1, int(math.ceil(tile_size['height'] * requestedScale))) + tile_overlap['x'] = int(math.ceil(tile_overlap['x'] * requestedScale)) + tile_overlap['y'] = int(math.ceil(tile_overlap['y'] * requestedScale)) # If the overlapped tiles don't run over the edge, then the functional # size of the region is reduced by the overlap. This factor is stored