by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 30 2019 04:38

    msalsbery on master

    useWSL (compare)

  • Dec 27 2018 23:32

    msalsbery on master

    gitignore update (compare)

  • Dec 27 2018 22:21

    msalsbery on master

    Build process update README update (compare)

  • Dec 27 2018 22:20

    msalsbery on master

    Build process update README update (compare)

  • Dec 27 2018 22:20

    msalsbery on master

    Build process update README update (compare)

  • Dec 27 2018 22:19

    msalsbery on master

    Build process update Dev node server fix Removed debug code (compare)

  • Dec 24 2018 01:28
    bdrichards commented #10
  • Dec 22 2018 02:05
    msalsbery assigned #1
  • Dec 22 2018 02:04
    msalsbery assigned #7
  • Dec 22 2018 02:04
    msalsbery labeled #5
  • Dec 22 2018 02:04
    msalsbery assigned #5
  • Dec 22 2018 02:04
    msalsbery commented #5
  • Dec 22 2018 02:02
    msalsbery labeled #9
  • Dec 22 2018 02:02
    msalsbery assigned #9
  • Dec 22 2018 02:02
    msalsbery commented #7
  • Dec 22 2018 02:00
    msalsbery labeled #7
  • Dec 22 2018 01:58
    msalsbery closed #10
  • Dec 22 2018 01:56
    msalsbery commented #10
  • Dec 22 2018 01:54
    msalsbery labeled #8
  • Dec 22 2018 01:51
    msalsbery labeled #6
MereHappyJaZZ
@MereHappyJaZZ
That was my next question! But in principle I can write my own custom SVG files, so I'll look into that! Thanks a bunch!
Ian Gilman
@iangilman
Cool
Actually, probably the easiest thing is to specify the OSD image width to match whatever's in the SVG, like so in the options when creating the viewer:
                        tileSources: [{
                            tileSource: tileSource,
                            width: 500
                        }]
That's saying no matter how big the image actually is, display it at 500 width (assuming your SVG is 500 across)
You can also change the x and y of the OSD image as well
Anyway, it's either that or do some transforming on the SVG
@msalsbery Sorry to hijack your chatroom! ;)
MereHappyJaZZ
@MereHappyJaZZ
That's a bit interesting. What's the effect of changing the width of my tileSource? Would I need to rescale the tileSize and tileOverlap to match?
Haha, yes, sorry =) Should I ask these things somewhere else?
Ian Gilman
@iangilman
Perhaps, but I'm sure he doesn't mind :)
And no, the image size you specify when creating the viewer has nothing to do with actual pixels or tiles, it's just for the viewport coordinate system. See here: http://openseadragon.github.io/examples/viewport-coordinates/
MereHappyJaZZ
@MereHappyJaZZ
Ah! So if I scale all my viewport coordinates to match my input SVG, it should make life easier
Ian Gilman
@iangilman
Exactly :)
MereHappyJaZZ
@MereHappyJaZZ
Nice =)
Mark Salsbery
@msalsbery
Nope, I don't mind...saves me from having to take notes! :)
Ian Gilman
@iangilman
:)
Matt D
@dephora
Hi there - So I'm using openseadragon in an app with which I need to draw thousands of ellipses and rectangles - being familiar with d3, I tried that first but from a performance standpoint - it's not going to work. I read that d3 is not optimal when getting into a high count like that though. So now I'm contemplating using a canvas and going that route. Has anyone done something similar with great performance results?
Ian Gilman
@iangilman
@Dephora You might find more interested parties over in https://gitter.im/openseadragon/openseadragon
Matt D
@dephora
@iangilman Thanks - yeah I wasn't sure which to post it to
Ian Gilman
@iangilman
Anyway, sounds like you're trying to decide between SVG and Canvas. D3 supports both, for what it's worth.
Either way the key is going to be filtering your content so you're not drawing more than you need for the specific zoom/pan you're at.
I don't know of anyone who's done it with OSD, though it's certainly possible people have. At any rate, level of detail culling is definitely a thing in computer graphics
Matt D
@dephora
Yeah, that is actually what my next approach was
Ian Gilman
@iangilman
Sounds good. I assume you are using the svg-overlay plugin for your SVG stuff?
Matt D
@dephora
Yeah
Ian Gilman
@iangilman
If you want to draw to the canvas, you just need to watch the viewer for animation event and draw after that into viewer.drawer.canvas
(and of course do the appropriate coordinate conversion)
Matt D
@dephora
Okay great - I'm going to give the canvas a shot and see how it is from a performance standpoint
Ian Gilman
@iangilman
Awesome. Let me know how it goes!
Matt D
@dephora
Will do, I appreciate the information!
Ian Gilman
@iangilman
:)
jyoths
@jyoths
Hello, anyone have idea openseadragon via DeepZoomTools.dll can support uploading image tiles to cloud?
Prayag
@prayagk
TypeError: viewer.addViewerInputHook is not a function
Does anybody know why this error shows?
Ian Gilman
@iangilman
@prayagk Sounds like maybe you haven't added the plugin script?
Prayag
@prayagk
@iangilman what is a plugin script?
Ian Gilman
@iangilman
@prayagk Like <script src="http://msalsbery.github.io/builds/openseadragonimaging/openseadragon-imaginghelper.min.js"></script>
That goes in your HTML file.
VladoPortos
@VladoPortos
Would be somebody willing code for me small function in js, using imaginehelper ( not for free of course time is not free I know :) ), I basically need a .js function that would detect mouse position on deepzoom image, only in the max zoom level, and called php script with that coordinates. I can do the php part. php will return string ( it will grab the name base on coordinates from mysql ) and subsequently display the returned string in some specified place in html ( ideally as a link ) ... I can do python / php / html but damn java script is a voodoo for me...
Ian Gilman
@iangilman
@VladoPortos I can probably help...
VladoPortos
@VladoPortos
@iangilman Thanks man, but I managed to get it working in part. I'm generating the coordinates in DB right now, and going to play with the php part soon :) btw, if anybody is curious its for deepzoom.reverz.sk and pony.reverz.sk :)
Ian Gilman
@iangilman
@VladoPortos Wow, those are awesome!
VladoPortos
@VladoPortos
@iangilman Ok, I will :) I'm working ( finishing) on .cz domain list now its way bigger than the previous one ( 366 000 domains ) now its almost 1Mil :) the deepzoom files are generated already, I'm just waiting for upload to web folder ( its over 5mil files, so its taking for ever )
Ian Gilman
@iangilman
Wow! Not surprising, given the size!
pramodbutte
@pramodbutte
ok I just joined this room, I have a quick question. is there a way to intgrate "openseadragon" viewer in python app? (client to view images)
Mark Salsbery
@msalsbery
@pramodbutte Wrong room but I see you found the OpenSeadragon room!
pramodbutte
@pramodbutte
@msalsbery yes thanks
Tushar Khairnar
@tussharkhairnar
:wave:
Tushar Khairnar
@tussharkhairnar
Trying to include fabrijs plug in angular app got error Uncaught ReferenceError: module is not defined
at openseadragon-fabricjs-overlay.js:3