These are chat archives for openseadragon/openseadragon

3rd
Aug 2017
Ian Gilman
@iangilman
Aug 03 2017 18:00
@pipriles Looks like it's a bug! openseadragon/openseadragon#1278 is the fix. Would you mind grabbing the branch from that PR and building it to verify it's working for you?
Oswaldo Capriles
@pipriles
Aug 03 2017 18:14
@iangilman let me check
Oswaldo Capriles
@pipriles
Aug 03 2017 18:41
@iangilman yes i just checked and that fixed the problem
@iangilman Thank you
Ian Gilman
@iangilman
Aug 03 2017 18:43
@pipriles Awesome. Thanks for bringing it to my attention, and for verifying the fix :)
Oswaldo Capriles
@pipriles
Aug 03 2017 18:47
@iangilman i'll be working with this patched version until you merge it
Ian Gilman
@iangilman
Aug 03 2017 18:54
Sounds good
Alexey Tikhonov
@altert
Aug 03 2017 18:55
@iangilman haven't seen it, thanks. Not sure I know the answer though)
Ian Gilman
@iangilman
Aug 03 2017 18:57
@altert Fair enough. Seems like there must be some way to compensate, but I guess that couldn't be built into the plugin, because it depends on where the object in question is. I see fabric doesn't support rotation, right?
Alexey Tikhonov
@altert
Aug 03 2017 19:01
yes, no canvas rotation there yet I think
Ian Gilman
@iangilman
Aug 03 2017 19:04
Yeah, then I guess they need to figure out how to compensate themselves. I assume you can push things around within fabric programmatically?
Alexey Tikhonov
@altert
Aug 03 2017 19:04
of course
compensate for offcenter you mean?
Ian Gilman
@iangilman
Aug 03 2017 19:05
Exactly
One of the things about making an API is being clear about what's outside the scope of that API. I think compensating object positions for OSD rotation is outside the scope of your plugin's API
Off to lunch here...
Alexey Tikhonov
@altert
Aug 03 2017 19:08
bon appetit)
Ian Gilman
@iangilman
Aug 03 2017 20:04
:)
chawlak11
@chawlak11
Aug 03 2017 22:40
@iangilman around 1000 pixel wide. I have downloaded and install the openseadragon in the root of www folder. Do we need to install something else to see the webpage where we can get the up link and view options.
Ian Gilman
@iangilman
Aug 03 2017 22:43
@chawlak11 At that size you don't need to convert your image into a tiled image; you can use it as is. You'll want to use http://openseadragon.github.io/examples/tilesource-image/
Have you made an HTML page?
chawlak11
@chawlak11
Aug 03 2017 22:45
@iangilman No i haven't made a HTML page. Do i need to include or add any directory structure in the openseadragon?
Ian Gilman
@iangilman
Aug 03 2017 22:45
You'll need an HTML page with something like this in it:
<div id="openseadragon1" style="width: 800px; height: 600px;"></div>
<script src="/openseadragon/openseadragon.min.js"></script>
<script type="text/javascript">
    var viewer = OpenSeadragon({
        id: "openseadragon1",
        prefixUrl: "/openseadragon/images/",
        tileSources: {
          type: "image",
          url: "/path/to/my/image.jpg"
        }
    });
</script>
You'll have to set all the paths right
This assumes that the index.html (the HTML page) is at the root of your www folder, and you also have the openseadragon folder (with the script and UI images) at the root
If you also have your image at the root and it's called image.jpg, then the URL line would be url: "/image.jpg"
Does all that make sense?
You can find more information at http://openseadragon.github.io/docs/
Oswaldo Capriles
@pipriles
Aug 03 2017 23:58
@altert I am kind of using your plugin, but the new scale thing i can't still figure out how to caculate the proper scale. Can you help me?