Skip to content

Commit 355521b

Browse files
committed
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.
1 parent b76124b commit 355521b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/stitch/dzi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
const (
2121
dziTileSize = 512 // The (maximum) width and height of a tile in pixels, not including the overlap.
22-
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`.
22+
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`.
2323
)
2424

2525
type DZI struct {

0 commit comments

Comments
 (0)