These are chat archives for openseadragon/openseadragon

8th
Apr 2016
sickrandir
@sickrandir
Apr 08 2016 08:17
@iangilman I understand. I'll try that and I see if I can make it work for my use case. Otherwise..Would you think that it's possible to load multiple copies of OSD, one per view, and just switch beetween views in the frontend?
Ian Gilman
@iangilman
Apr 08 2016 16:10
@sickrandir I suppose you could, but I'd recommend using the multi image support instead. You can really do whatever you want with the images if you take control of them yourself. My only hesitation above was that I didn't know how it might interact with sequence mode, but you can easily recreate sequence mode yourself if you need a more advanced version (if you can't get it to work with the existing sequence mode)
At any rate, OSD definitely supports having multiple images on top and/or near each other
sickrandir
@sickrandir
Apr 08 2016 16:12
@iangilman cool! I'll look in how sequence mode is implemented then.
Ian Gilman
@iangilman
Apr 08 2016 16:14
Cool. I believe sequence mode uses open to switch between images. If you're doings something more advanced, you might want to manipulate the viewer.world yourself and do viewer.world.removeItem to get rid of images and viewer.addTiledImage to add them
sickrandir
@sickrandir
Apr 08 2016 16:16
ok . I'll just need OSD not to download tiles again when switching between images. Is that already taken care of?
Ian Gilman
@iangilman
Apr 08 2016 16:18
Should be fine, since those tiles will be in your browser's cache
Another option would be to add all images at once but give them all opacity of 0, and then just switch between them by changing the opacity. Images with 0 opacity don't load their tiles or draw
sickrandir
@sickrandir
Apr 08 2016 16:29
ok. speaking of sequence mode: only the images in the current view can be opened right? even if with opacity set to 0 I mean
Ian Gilman
@iangilman
Apr 08 2016 16:33
What do you mean?
sickrandir
@sickrandir
Apr 08 2016 16:41
It's not clear to me if I can add all the images at once or, considering sequence mode, just one "view" the time.
Ian Gilman
@iangilman
Apr 08 2016 16:42
As long as you have sequence mode, every image in the viewer will be flushed out whenever the user switches to a new page.
So if you wanted to do the opacity 0 trick, that would only be if you did your own kind of sequence mode
sickrandir
@sickrandir
Apr 08 2016 16:42
ok now it's clear
perfect
I will look into roll a modification of sequence mode then. and later decide if adding or removing or using the 0 opacity trick. Basicaly it seems that it wouldn't change nothing performance wise between these to options right?
Ian Gilman
@iangilman
Apr 08 2016 16:46
Yeah, it should just be a matter of personal preference
Let me know how it goes!
sickrandir
@sickrandir
Apr 08 2016 16:46
Yes, sure!
thanks!