## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
Ian Gilman
@iangilman
...And I'm not saying CORS is the only problem here, but it's definitely one of the things that needs to happen.
Robin X.B. Nie
@Robinxbnie
@iangilman Thanks. Yes, the two servers are both running. I am a little frustrated with the CORS setup on my data server. Let me try the techniques on your codepen. I will report the status back.
Robin X.B. Nie
@Robinxbnie
@iangilman Thank you very much. Your techniques of "tileSourceFromData" are the magic to solve my problem without dealing the CORS setup on data server. Now it can display the image by fetch data from 3rd party data server. Thanks again and wish you happy days.
Ian Gilman
@iangilman
Tord Nilsen
@tordnilsen
Hi. We're implementing OSD as the viewer at National Museum of Norway. But I got one problem: OSD on mobile with 80% height. I can't figure out how to scroll down to the rest of page. OSD only pans the image. And if I set mouseNavEnabled nothing scrolls...
Joey Toppin
@ozette
pyramidio-cli questions welcome here?
Joey Toppin
@ozette
using pyramidio-cli I'm getting "Unable to parse URI" error on my output directory even though the path I'm giving is valid
when I'm doing setting output to be the current directory '-o .' it works. when it's '-o D:\some\path' it fails that it's unable to parse the URI
tried D:\ D:/ etc.
double backslash too
Joey Toppin
@ozette
can pyramid io output to another drive letter?
Ian Gilman
@iangilman
@tordnilsen yes, that's a tricky one, since the natural gesture for scroll is the same we're using for pan. What sort of behavior would you like? I may be able to help propose a way to accomplish it…
Ian Gilman
@iangilman
@ozette unfortunately I'm not familiar with pyramidio-cli, Java, or Windows, so I may not be much help here. Is there some sort of standard way (besides the usual drive letter) to refer to a different drive when using Java? The examples at https://github.com/usnistgov/pyramidio suggest -o file:///tmp/outputfolder.tar as a possible structure; I don't know if that's a good clue. You could always try filing an issue there. It looks like pyramidio was written by @avandecreme; I don't know if he's still active here or on that project, but maybe someone else is paying attention.
Ian Gilman
@iangilman
Looks like you might just include the letter in the "file" structure (according to https://stackoverflow.com/questions/12711584/how-to-specify-a-local-file-within-html-using-the-file-scheme), like file:///D:/foo/bar or something.
Joey Toppin
@ozette
aHH Ian thank you that just might be it, I'll try
I had no clue how to set the drive letter
Joey Toppin
@ozette
No success unfortunately. The weird thing is if I provide C:\foo\bar it works
D:\foo\bar unable to find jarfile ..
quadruple checked the file path, I don't get it
i dragged the file in my browser to get the file:///D:/ path and copy pasted it in the terminal
Joey Toppin
@ozette
but that file:/// part did help me thank you!
file:///d:/ path works for -o flag
I moved the pyramidiocli program to d: as well, and so when I called the program, I also set file:/// before its d:/path
but it only works for -o ?? it seems
Ian Gilman
@iangilman
@ozette can you share the whole command you're using so I can get some context?
Alexey Tikhonov
@altert
hello) quick question: when using navigationControlAnchor "absolute" how to set top and left coordinates for it?
Tushar Khairnar
@tushar1127
hi Ian! I want to draw shapes on image what should I do , I have drown rectangle using OpenSeadragon.Rect(viewportPoint.x, viewportPoint.y, 0.2, 0.25) now I want to create custom shapes which class/API should i Use , I know there is OpenSeadragon.Point (viewportPoint.x, viewportPoint.y) class , dont understand should how to use it . SHOULD I CREATE svg element and pass it to Point() ?
Tushar Khairnar
@tushar1127
@altert hi ! If you can guide
oweniverson
@oweniverson

I'm hearing about "canvas limitations" for an app we're having built. Here are what we're being told is the "maximum area" for the canvas:

Chrome: 16,384 x 16,384px
Firefox: 22,528 x 20,992px

Does OSD have these kinds of limitations? Any limitations?

Ian Gilman
@iangilman
@altert good question! Looks like the ABSOLUTE const was added for positioning the navigator, not the controls, and the controls don't really have a mechanism for supporting it. One thing you could do would be to explicitly set the styling on it via viewer.navControl.style. Looks like it doesn't even set position: absolute so you'd have to do that , in addition to setting the left and top values. Of course it would be cool if we actually supported that value for real, so if you want to make a pull request (or even file an issue) that would be great :)
@tushar1127 Rect and Point are just mathematical; they don't draw anything on the screen. If you want to draw shapes, I recommend using of the overlay libraries: http://openseadragon.github.io/#plugins We have them for SVG, canvas, Fabric, and Paper.
@oweniverson we don't have limitations beyond what the browser has. Our canvas is only as big as your screen, so I guess if you have a 17000 pixel wide screen and you're using Chrome, you might run into trouble. We also create offscreen canvases for our tiles, so if you have a single tile that's 17000 pixels wide, that would be a problem as well. Of course the canvas limitation isn't the only reason such a large tile would be a problem! That's why it's best to use a format like DZI that breaks the image up into multiple tiles.
There are also browser limitations like this one on iOS Safari: openseadragon/openseadragon#381
Tushar Khairnar
@tushar1127
@iangilman Thanks ! but I want geometrical shapes with custom size. Means i want to draw circle & rect of random size. what to save information related to it.
oweniverson
@oweniverson
@iangilman Thanks for the clarification. The limits they seem to be referring to are like, the entire canvas, not what's just onscreen in any given moment. Seemed weird, but we'll see. Thanks!
Ian Gilman
@iangilman
@tushar1127 Yes, that's exactly what those plugins support... they all allow whatever kind of geometric shapes you want. You might try Fabric first; I think that's the most user friendly. As for saving information about it, you'll have to do that yourself, however you save the rest of the information about your app... there's nothing OSD specific about doing it.
@oweniverson OSD never puts the entire image together in a single canvas, so you don't need to worry about giant images going over that limit. http://www.in2white.com/ is a fine example; it's 365 gigapixels, way over the canvas limit!
Tushar Khairnar
@tushar1127
@iangilman Trying to include fabrijs plug in angular app got error Uncaught ReferenceError: module is not defined
Ian Gilman
@iangilman
@tushar1127 interesting. I don't know that much about including plugins in Angular. I guess that might be a reason to try the other overlay plugins, to see if any of them work in Angular.
Alexey Tikhonov
@altert
@iangilman thanks!
preparing multimedia project using osd now, but later on hope to make pr or at least issue)
Tushar Khairnar
@tushar1127
Tried both paperjs and fabric js ,
Paperjs plugin throws error for its method.
Fabric js throws error in complile time.
Ian Gilman
@iangilman
@altert Cool. I'd love to see the multimedia project once it's ready!
@tushar1127 How about canvas or SVG? Anyway, you might file issues on these plugins about Angular support. BTW, there's some discussion here: openseadragon/openseadragon#1709 I don't know if any of that would be helpful.
Alexey Tikhonov
@altert
@iangilman sure thing. should be open next week. I use OSD as basis for kind of steampunkish google maps)
Alexey Tikhonov
@altert
tried OSD on raspberry pi - quite smooth!
Ian Gilman
@iangilman
@altert wow... what are you using it for on the Pi? Is this for a museum installation?
Steampunk OSD maps sounds cool!