From 355521b144b2a365ebca90f970c404e4b1871c00 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Sat, 23 Dec 2023 12:44:29 +0100 Subject: [PATCH] Change dziOverlap to 2 With 0, OpenSeadragon has problems drawing the images correctly. And with 1, we introduce rounding errors when creating the smaller zoom levels. --- bin/stitch/dzi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/stitch/dzi.go b/bin/stitch/dzi.go index 0188b9a..86f068d 100644 --- a/bin/stitch/dzi.go +++ b/bin/stitch/dzi.go @@ -19,7 +19,7 @@ import ( const ( dziTileSize = 512 // The (maximum) width and height of a tile in pixels, not including the overlap. - dziOverlap = 0 // The amount of additional pixels on every side of every tile. The real (max) width/height of an image is `2*overlap + tileSize`. + dziOverlap = 2 // The amount of additional pixels on every side of every tile. The real (max) width/height of an image is `2*overlap + tileSize`. ) type DZI struct {