These are chat archives for openseadragon/openseadragon

26th
May 2017
Benjamin Schieder
@blind-coder
May 26 2017 05:42
Good morning. I have a question:
I have a DZI pyramid 20 levels deep
now I uploaded all the levels up until 16
and now I want to upload only the deeper levels of certain parts of the DZI pyramid because not everything is "interesting"
mostly, this works just fine, but the parts I have not uploaded will show up "black"
is there a way to keep the upper levels image and just stretch it to fill the remaining space?
I know it will look blurry, and that's okay, but I just don't have the space to upload all the deeper levels
level 20 weighs in at 326 GiB after running optipng over it
I'm running OpenSeaDragon 1.1.1
Yes, I know it's 3 years old
but the newer version doesn't support viewer.addLayer anymore
Benjamin Schieder
@blind-coder
May 26 2017 05:47
also, converting everything to .jpg is sadly not an option because I need transparency
sickrandir
@sickrandir
May 26 2017 08:51
@blind-coder I'm using transparent PNGs with OpenSeadragon (latest trunk) and if some high layer is missing or not downloaded for some reason, OSD keeps the lower level rendered. No seeing this black effect. I don't know what the method addLayer did in old versions but I'm using multiple overlapped tiled images with transparency in my project, so maybe you can look into that feature and try to upgrade to latest osd. If you need to draw graphics on the canvas there are plugins to help do it that might suit your need for layers
Benjamin Schieder
@blind-coder
May 26 2017 09:04
@sickrandir addLayer lets you overlay another tilesource over an existing one. I use it to display expansion maps over the main map and also to show higher floors at an offset
So if you check here https://map.projectzomboid.com/dev/?#0.4317105903917656,0.15492867106492586,237.37631379976963 you have a "Select level" option on the left. If you select level 1 for example it'll call addLayer for a second tilesource and display it at an offset of -64 on the y axis
sickrandir
@sickrandir
May 26 2017 09:17
@blind-coder it sounds exactly what I'm doing right now with addTiledImage. You can add as many transparent tilesource as you want and chose the position/offset. Check it out: https://openseadragon.github.io/docs/OpenSeadragon.Viewer.html#addTiledImage
Benjamin Schieder
@blind-coder
May 26 2017 09:19
that sounds good, I'll give it a try. Thanks!
sickrandir
@sickrandir
May 26 2017 09:19
cool!
@iangilman and all: I'm still experiencing problems with the transparent images disappearing in Safari on mac and iOS. In the past @avandecreme suggested to display the sketch canvas and find out if the images were drawn there. I did and the problem seemed to not show up in the sketch canvas. Then this patch seemed to partially fix the problem openseadragon/openseadragon#1035, but in the meantime I had switched to have all the images with the same full size and I didn't experience the issue anymore. Right now I switched back to have cropped images for performance reason (there were too many empty/transparent tiles) and the issue is back and images disappear (in Safari and iOS) even in the sketch canvas.
I put up here an example with the sketch canvas displayed: http://dhhq.duckdns.org/configurator/4
Can you please give me some pointer in debugging the issue further? Thanx!
Benjamin Schieder
@blind-coder
May 26 2017 10:47
@sickrandir thanks for the hint, after fixing some math it works like a charm
Now.... how do I remove those tilesources again?
Benjamin Schieder
@blind-coder
May 26 2017 10:53
ah, found it
viewer.world.removeItem(viewer.world._items[2])
sickrandir
@sickrandir
May 26 2017 11:52
@blind-coder there you go! ;-)
William Lee
@WilliamCarlos
May 26 2017 23:01
Has anyone successfully used altert's openseadragon-fabricjs plugin?
I'm having some problems with the drawn shapes/annotations sliding around when you zoom in/out of an image
I vaguely remember having a similar problem from using the wrong coordinate system? which I think might be the issue here
I think that ties in to this? altert/OpenseadragonFabricjsOverlay#18 @iangilman