These are chat archives for openseadragon/openseadragon

29th
Jul 2015
Alcatrazer
@Alcatrazer
Jul 29 2015 06:24
glad to hear it Javis
Hmm miss nick completion here
Alcatrazer
@Alcatrazer
Jul 29 2015 06:39
Can OSD be used with an array passed to it by python ?
VoidVolker
@VoidVolker
Jul 29 2015 07:21
?
you want use custom tile source?
Alcatrazer
@Alcatrazer
Jul 29 2015 07:24
voidVolker
basically currently I have a DZI folder where I convert to DZI's my inages
now I made a solution where a python script creates a JS array in a seperate file and the main file callthe seperate file
so the DZI's become a global array this is not a good solution
I mean the main file uses the array defined in the seperate.js file for the array to use in sequence mode.
so the python script writes out JS syntax. E.g. var file_list_array ['/path/to/foo.dzi','/path/to/bar.dzi'']
and then the main file uses this array in sequence mode.
Alcatrazer
@Alcatrazer
Jul 29 2015 07:31
Actually let me try something. when an array is given to OSD just used get request to fetch the images right
So if I give it an array and let cherrypy return the resource it should work. Let me try.
Ian Gilman
@iangilman
Jul 29 2015 16:23
@Alcatrazer If you're loading a bunch of images, you can also extract the data from the DZI and send all of that (as JSON) and load them up that way. That saves you a round trip to the server for each DZI
javipsantos
@javipsantos
Jul 29 2015 16:43
@VoidVolker here it is:
Thanks to openseadragon Team! Works fine.
Ian Gilman
@iangilman
Jul 29 2015 16:49
@javipsantos Beautiful! Those are some high res images :)
Do you mind if I add your site to http://openseadragon.github.io/examples/in-the-wild/ ?
Bill Criswell
@crswll
Jul 29 2015 17:05
@iangilman http://www.monticello.org/mulberry-row/places/phase-i we used it here for a couple things as well if you feel like updating the list
I don't think it's the best use of it, but it is using it haha.
Ian Gilman
@iangilman
Jul 29 2015 17:06
@crswll Looks pretty slick to me! Thanks for the heads up; I'll add it
Bill Criswell
@crswll
Jul 29 2015 17:08
I'm using it for a kiosk I'm working on, sadly no way to link that. =(
it stinks cause there's so much fun content in there. I have like... 8gigs of tiles.
Ian Gilman
@iangilman
Jul 29 2015 17:08
I hear ya. I did a cool installation with OSD, but of course you'd have to be there. Maybe one of these days I'll put a video up.
Yow!
Bill Criswell
@crswll
Jul 29 2015 17:09
Haha nice.
Ian Gilman
@iangilman
Jul 29 2015 17:09
In DC? I guess I'll just have to stop by sometime...
Bill Criswell
@crswll
Jul 29 2015 17:09
Yeah, 130 different items, some of them with different views.
Ian Gilman
@iangilman
Jul 29 2015 17:09
Right on
Bill Criswell
@crswll
Jul 29 2015 17:10
We're in Philly, but the kiosk is for The Wadsworth Museum.
Ian Gilman
@iangilman
Jul 29 2015 17:11
Cool. Next time I'm out that way...
We keep talking about taking our daughter out to see American history sites. I understand Philly has some ;)
Bill Criswell
@crswll
Jul 29 2015 17:25
haha that we do!
javipsantos
@javipsantos
Jul 29 2015 18:46
@iangilman , thank you!! You can add examples in the wild
Ian Gilman
@iangilman
Jul 29 2015 18:46
Awesome, thank you :)
Alcatrazer
@Alcatrazer
Jul 29 2015 19:09
iangilman my knowledge of server side stuff when it comes to the web is terrible. I was basically just trying stuff. I wanted to understand how you can serve images in a secure way without giving full paths. In cherry py I have written logic to return image sets. That works each imageset is a folder in /DZI. What do you mean by serve it all up as a JSON ? E.g. suppose there are 5k images in one imageset make python backend to give all the DZI's for the imageset in one JSON array.
First I need to get accessing individual DZI's working I think. I dont know if what I am doing right now will be fruitful I forked the app to test this out.
because after fetching the DZI the backend needs to return the tiles too.
With the simple python server it was serving stuff directly. SO I just needed to modify the array to include a relative path.
Maybe I'll set up a proper server in a VM and play around then when things are at a decent point I am ready to move ahead.
javispasantos looks great :)
@javipsantos looks great.
Alcatrazer
@Alcatrazer
Jul 29 2015 19:15
maybe cherrypy is actually overkill for this too. Maybe I am unnecessarily complicating stuff :P
Ian Gilman
@iangilman
Jul 29 2015 20:14
@Alcatrazer Possibly so ;)
At any rate, if you transfer the DZI information some other way, then you don't need to have the images on the same server (although all the tiles still need to be together with each other)
Here is an example where the DZI is defined in the JS and the tiles are on a separate server: http://codepen.io/iangilman/pen/bdgWBz
Funny it doesn't run here...
Mark Salsbery
@msalsbery
Jul 29 2015 20:17
Hi @sandymclean Are you still around? Looked at OpenSeadragonViewerInputHook and I’m not getting an error. It looks like the only way it would error on that line is if the properties in the “hooks” configuration is invalid.
Whoa…OpenSeadragon embedded in a gitter page! :)
Ian Gilman
@iangilman
Jul 29 2015 20:18
Is it working for you?
Mark Salsbery
@msalsbery
Jul 29 2015 20:18
Yes
!
Ian Gilman
@iangilman
Jul 29 2015 20:19
Interesting. Not for me
Mark Salsbery
@msalsbery
Jul 29 2015 20:19
I’m on the gitter native app (on Mac)
Ian Gilman
@iangilman
Jul 29 2015 20:19
That probably explains it
Alcatrazer
@Alcatrazer
Jul 29 2015 20:21
thanks @iangilman
Mark Salsbery
@msalsbery
Jul 29 2015 20:22
@iangilman It doesn't run on the Windows native Gitter app
Ian Gilman
@iangilman
Jul 29 2015 20:22
Interesting
On the Gitter website here (Mac Chrome)
Mark Salsbery
@msalsbery
Jul 29 2015 20:26
Everything shows except the image
Alcatrazer
@Alcatrazer
Jul 29 2015 20:26
msalsbery your right the mouse permanently locked within OSD is only if I hover over dev tools.
so I have to try to keep the mouse on top if I want to avoid loading the page
Ian Gilman
@iangilman
Jul 29 2015 20:27
@msalsbery likewise
Mark Salsbery
@msalsbery
Jul 29 2015 20:27
@Alcatrazer I think that happened to me yesterday...I'm looking into the pointer event stuff now to make sure things are still working ok on 2.0...
Cool what are steps to reproduce?
@iangilman @Alcatrazer ^^
Alcatrazer
@Alcatrazer
Jul 29 2015 20:31
one sec
Ian Gilman
@iangilman
Jul 29 2015 20:31
@msalsbery Sorry, my "likewise" was about Gitter
Mark Salsbery
@msalsbery
Jul 29 2015 20:31
Gotcha thanks :)
Alcatrazer
@Alcatrazer
Jul 29 2015 20:32
msalsbery I also noticed another bug. If images contain characters lie %5b etc. in them then OSD cannot parse the list.
IN linux those are valid and maybe on Mac too. On windows they are pretty strict.
Just noticed it by chance when getting some nice high res to demo your amazing plugin to my brother.
hmm cant reproduce now (:
Mark Salsbery
@msalsbery
Jul 29 2015 20:37
hehe So, all fixed then? ;)
Alcatrazer
@Alcatrazer
Jul 29 2015 20:38
no its weird
cant be because I have not updated my plugin
so its a one of those annoying tantrum throwing bug
I'll try to see if I can reliably reproduce it. /me is sad
Sorry. But it has always happened with dev tools open.
Mark Salsbery
@msalsbery
Jul 29 2015 20:39
@Alcatrazer What’s up with the mouse/pointer thing? I’m in there right now so maybe I can find that one too! My plugins haven’t been tested on OSD 2.0 but that’s at top of priority list so I’ll be looking at those!
Alcatrazer
@Alcatrazer
Jul 29 2015 20:41
I am trying to reproduce it. Sometimes. The when scrolling through an image. It appears like as if the mouse is completely stuck inside OSD. pressing other buttons on my app do not reset teh mouse behaviour. Only reloading the web page does. But right now I cannot reproduce it. I think it happens in Chrome more so I was trying to reproduce it there.
Antoine Vandecreme
@avandecreme
Jul 29 2015 20:41
FWIW, I am using the viewerInputHook (to do something else than zoom) on 2.x without problems
(to do something else than zoom on click)
Alcatrazer
@Alcatrazer
Jul 29 2015 20:43
msalsbery could be a bug in chrome
maybe the updated chrome fixed it coz the plugin is not updated.
my package manager handles chrome updates
Mark Salsbery
@msalsbery
Jul 29 2015 20:49
Ok cool thank you! I test on Chrome as well so I'll see what I find...
Alcatrazer
@Alcatrazer
Jul 29 2015 20:54
ok great