These are chat archives for openseadragon/openseadragon

26th
Apr 2017
sohaib
@sohaib_ghani_twitter
Apr 26 2017 12:52
@iangilman I tried all the options as you suggested above but i am unable to disable image smoothing on windows based system (tried on 3 different systems). Surprisingly resize, requestAnimationFrame, etc, all works on my mac laptop (running windows). Now i have perfect application on my laptop that is updating itself on resizing. But on windows based machine i am unable to disable image smoothing by any means.
It is not directly linked to OSD but still if you can give me any other advice about it. I am stuck on it. Can you try canvas image smoothing on your windows and see if it is working? Thanks
Mike Pence
@mikepence
Apr 26 2017 15:30
hi all. I am using OSD for a Whole Slide Imaging medial application. using it with clojurescript. my first question is how do I set the TileSource and then have the viewer load those tiles, given an initialized viewer called 'viewer' in JS?
viewer.addTiledImage({tileSource: "/dzi/testdz.dzi"})
Mike Pence
@mikepence
Apr 26 2017 15:39
viewer.open({tileSource: "/dzi/testdz.dzi"});
Ian Gilman
@iangilman
Apr 26 2017 16:54
@mikepence I think either of those should work... are you having trouble with it?
The difference is that open removes any other images you may already be showing in the viewer, and addTiledImage keeps them but adds the new one
Ian Gilman
@iangilman
Apr 26 2017 17:08
@sohaib_ghani_twitter Very strange! Unfortunately I don't have a Windows setup to test on. Did you try different browsers? Are they all the same version? I suppose you could try all the prefixes?
ctx.mozImageSmoothingEnabled = false;
 ctx.webkitImageSmoothingEnabled = false;
 ctx.msImageSmoothingEnabled = false;
 ctx.imageSmoothingEnabled = false;
sohaib
@sohaib_ghani_twitter
Apr 26 2017 19:15
yes I tried different browsers and also tried all the prefixes.
Mike Pence
@mikepence
Apr 26 2017 20:27
thanks Ian
still getting to know the docs. are there on success and on failure callbacks for open()?
ah, I see open and open-failed events
looking for some examples of their usage
oh, viewer.addHandler looks promising
Mike Pence
@mikepence
Apr 26 2017 20:37
yep, that did it
Ian Gilman
@iangilman
Apr 26 2017 22:03
@mikepence Excellent :)
@sohaib_ghani_twitter I guess I'm out of ideas. You should make a simple non-OSD repro in something like CodePen and post it to Stack Overflow or something.