These are chat archives for openseadragon/openseadragon

17th
May 2018
Torbjörn Kvist
@Dvidan
May 17 2018 08:50
Hello, I'm trying out OpenSeadragon with transparent png and with dzi. But getting some kinda grid/overlap in the viewer (see image).
Anyone got any suggestions if I'm doing anything wrong? The dzi has overlap=0 and tileSize=254.
overlap_osd.png
Ian Gilman
@iangilman
May 17 2018 16:41
@Dvidan Interesting. Have you tried with overlap = 1?
I suspect you probably don't want overlap, due to the transparency.
...but it would be interesting to know.
Ian Gilman
@iangilman
May 17 2018 16:50
The DZI itself looks fine, so I think it's probably an issue with OSD.
I'd say it's definitely overlapping a little (this is why the grid is blue)... Presumably it's doing that to avoid the other kind of grid you would get if the tiles didn't properly touch each other.
I tried the same example but with OSD 2.0.0 and I'm getting the same result, so this isn't a new issue, evidently.
I'll let you know if I have any other thoughts, but it's probably worth filing an issue on it.
Torbjörn Kvist
@Dvidan
May 17 2018 17:50
@iangilman Yeah, tried with overlap = 1 first. First time we are using OSD with transparency so we were suprised by to blue grid. Will file an issue on this.
Checked the code that is responsible for it and found https://github.com/openseadragon/openseadragon/blob/master/src/tile.js#L358-L363, if I change the -2 to -1 I don't get the grid but not sure if thats the right way of doing it.
Ian Gilman
@iangilman
May 17 2018 18:19
@Dvidan Good spotting! That might be exactly it.
We'll just have to do some testing to see if there aren't adverse effects.
Would you be up for making a patch?