Skip to content

Commit

Permalink
Change dziOverlap to 2
Browse files Browse the repository at this point in the history
With 0, OpenSeadragon has problems drawing the images correctly.
And with 1, we introduce rounding errors when creating the smaller zoom levels.
  • Loading branch information
Dadido3 committed Dec 23, 2023
1 parent b76124b commit 355521b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/stitch/dzi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 355521b

Please sign in to comment.