Ian Gilman
Ian Gilman
@actsasbuffoon Thank you for continuing to test the patches! @pearcetm Thank you for hunting this down! It's possible some of my most recent comments in #2537 could point to some...
Forgive me if this has already been asked, but @actsasbuffoon is it possible for you to share your tilesource with @pearcetm ? Sounds like that would make a difference in...
Wonderful! I'm glad the cause has been discovered!
There isn't really at the moment. You might be able to make it work like so: ``` const newBounds = viewer.world.getItemAt(1).getBounds(); viewer.viewport._setContentBounds(newBounds, viewer.world.getContentFactor()); ``` ...But `_setContentBounds` is a private function,...
Does your server also have trouble serving the image tiles in time? Or is that fine because they are loaded one at a time? This is the first I've heard...
Great... Sounds like a good setup. Thank you for sharing the info on it. And yes, we'll leave this issue open in case someone wants to tackle adding the feature.
You want `setClip`: https://openseadragon.github.io/docs/OpenSeadragon.TiledImage.html#setClip For example: ``` viewer.addHandler('open', () => { viewer.world.getItemAt(0).setClip(new OpenSeadragon.Rect(100, 100, 400, 400)); }); ```
You can do that like so: ``` viewer.addHandler('open', () => { const rect = new OpenSeadragon.Rect(100, 100, 400, 400); viewer.world.getItemAt(0).setClip(rect); viewer.viewport.fitBounds(rect, true); }); ``` That'll automatically zoom you to that...
OSD doesn't have a feature for that. It might be interesting to explore adding that feature; I imagine it'll take some doing. Meanwhile, can you crop the image on the...
@pearcetm Both `setClip` and `setCroppingPolygons` just hide parts of the image... They don't change the bounds of the image so OSD would treat the image as if it had been...