These are chat archives for openseadragon/openseadragon

18th
Apr 2016
Ian Gilman
@iangilman
Apr 18 2016 16:23
@visued Even though that schema link is now dead, there's no harm in having the reference to it in your DZI file, so that's not the problem. If you're getting "unable to load tileSource" the first thing to verify is that you have the path right to your actual DZI file
Alexey Tikhonov
@altert
Apr 18 2016 18:23
@iangilman I’ve tried to control OSD with usb external knob, quite tangible feeling
Alexey Tikhonov
@altert
Apr 18 2016 21:02
is there an easy way to pan/zoom so image or images will take exact part of viewer element in pixels?
Ian Gilman
@iangilman
Apr 18 2016 21:31
@altert The physical knob sounds like fun!
I'm not sure what you mean by taking an exact part of the viewer element
Alexey Tikhonov
@altert
Apr 18 2016 21:32
@iangilman hopefully I’ll show you soon the installation based on that ship album demo
Ian Gilman
@iangilman
Apr 18 2016 21:32
Do you mean you want to fill the viewer with a specific part of the image?
Awesome, I look forward to seeing it!
Alexey Tikhonov
@altert
Apr 18 2016 21:32
yes, but kind of opposite - place zoomed out image on specific part of viewer
Ian Gilman
@iangilman
Apr 18 2016 21:32
We've added an "installations" section to our "in the wild" gallery
Okay, I see. there's nothing specific for that... you would just use fitBounds like normal. For instance if you wanted it in the upper right, you could do a getBounds on the image and then double the width and move the x appropriately (and do the same for vertical)
Of course you have to do a little math to make sure you account for the aspect ratios of the image vs the viewer
Alexey Tikhonov
@altert
Apr 18 2016 21:35
ok. I’ll try that. thanks! btw - that ship thing is based on your m2 demo
Ian Gilman
@iangilman
Apr 18 2016 21:36
Nice :) I hope it wasn't too hard to work with!
Alexey Tikhonov
@altert
Apr 18 2016 21:37
it’s sometimes too deep for me) but very useful
Ian Gilman
@iangilman
Apr 18 2016 21:37
Fair enough... glad to hear it's been of help!
Alexey Tikhonov
@altert
Apr 18 2016 21:45
and what’s the difference between fitBoundsWithConstraints and fitBounds?
Ian Gilman
@iangilman
Apr 18 2016 23:06
@altert The latter uses exactly the bounds you give it (though still adjusting for aspect ratio) while the former may adjust the bounds so that you stay within the constraints (i.e. not panned off the screen, not zoomed too far in or out)
Alexey Tikhonov
@altert
Apr 18 2016 23:36
I see. Thanks