These are chat archives for openseadragon/openseadragon

24th
Mar 2016
Illya Moskvin
@IllyaMoskvin
Mar 24 2016 13:35
Hi all! I was wondering if there is a plugin for Open Seadragon that does something like this: https://codyhouse.co/gem/css-jquery-image-comparison-slider/
I ask because I'm interested in possibly developing one, but I wanted to check in so that I don't reinvent the wheel.
Alexey Tikhonov
@altert
Mar 24 2016 14:49
Hi, Ilya, great idea) I don't think there is one already.
@IllyaMoskvin I've recently made demo for layers comparison, it's close in technology but uses fading instead of draggable slider, some code might be of use for you: http://rosphoto.org/multispectral/index-en.html
Illya Moskvin
@IllyaMoskvin
Mar 24 2016 15:28
@altert Ah, that's great! We're planning on doing something similar, with IR and x-ray images of paintings. Our designer has a comparison slider in mind; we're not sure yet if this project will be using OSD, but if so, I'll give it a shot!
Really digging the light source position selector. Very smooth!
Alexey Tikhonov
@altert
Mar 24 2016 15:31
@IllyaMoskvin thanks. got some non-osd question for you in private channel, if its ok?
Antoine Vandecreme
@avandecreme
Mar 24 2016 15:48
@IllyaMoskvin there is no plugin for that yet. This should be doable using the clip option.
Ian Gilman
@iangilman
Mar 24 2016 16:02
Agreed. Would be a great plug-in!
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:03
@dwrogers Did you start working on the overlays rotation?
David Rogers
@dwrogers
Mar 24 2016 20:03
@avandecreme Just started getting familiar with the code, playing around with it - no real work yet.
I temporarily "lost" funding - hope to year something soon.
"hear"
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:05
ok, I might go into it if you are not
I have actually a new use case where I would need to scale the overlay horizontally but not vertically
David Rogers
@dwrogers
Mar 24 2016 20:06
Ok. There are lots of other things I can get involved in when the purse strings are let loose.
The important thing is to get it done :-)
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:07
yup!
@iangilman what do you think about separating the different overlay types in subclasses? Backward compatibility should not be a problem I think.
Ian Gilman
@iangilman
Mar 24 2016 20:11
@avandecreme Point versus rectangle you mean?
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:11
yes
I would eventually have a 3rd type scaling only horizontally but not vertically
Ian Gilman
@iangilman
Mar 24 2016 20:11
Sounds reasonable if you think it'll clean the code up :)
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:12
:+1:
Ian Gilman
@iangilman
Mar 24 2016 20:15
While you're in there, give some thought to how we might enable overlay plug-ins for even more types!
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:18
what types do you have in mind?
Ian Gilman
@iangilman
Mar 24 2016 20:33
I don't know... I just figure if we are opening up more than one type, new types might as well be plugable
Of course, maybe scaling just horizontally but not vertically doesn't merit its own type, maybe that's just a flag on the rectangular type?
Mostly just thinking out loud :)
But who knows, maybe there are all sorts of overlay behaviors and/or looks that people might want to code if it was easy to add new ones
Antoine Vandecreme
@avandecreme
Mar 24 2016 20:40
Ok, I was just wondering how generic you had in mind
I was looking at the m2 demo, did you have any reason to prefer svg overlay over standard overlays for the hover effect?
is it better for performances?
Ian Gilman
@iangilman
Mar 24 2016 21:02
Well, I had just written the svg overlay at that time, so I think I wanted to put it through its paces. I also like the fact that the svg overlay outlines grow and shrink as you zoom, though of course the m2 demo doesn't really take advantage of that.
http://www.letsfathom.com makes much better use of svg overlays (hover over any album... that text and those icons are all done with the svg-overlay plug-in)
I would imagine svg overlays are better for performance, but I don't know for sure. Of course it doesn't really matter when you only have a dozen overlays or less
Antoine Vandecreme
@avandecreme
Mar 24 2016 21:20
alright, thanks for the info. letsfathom looks great!
Ian Gilman
@iangilman
Mar 24 2016 21:25
Thanks :)
... don't forget to hit the "related" button at least once :)
Illya Moskvin
@IllyaMoskvin
Mar 24 2016 21:34
Apologies, but if I'm developing a plugin, should I be using the latest official release (v.2.1.0), or should I build from source with grunt?
Ian Gilman
@iangilman
Mar 24 2016 21:38
@IllyaMoskvin I suppose either way... ideally your plug-in should be compatible with both, but I suppose the official release most important (until the next release happens, of course)
We're aiming at something like quarterly releases, FWIW
Illya Moskvin
@IllyaMoskvin
Mar 24 2016 21:41
@iangilman Thanks! I'll aim for compatibility with the official release first and patch it later, after I have the basics down.
David Rogers
@dwrogers
Mar 24 2016 21:53
Just making stuff up here...What about an overlay based on an ellipse (or circle)... is there a substantial difference this would bring compared to the rect type overlay? Or an overlay which is positioned and which rotates around a given point. Or an overlay that can rotate independently of the viewport - can we already do that? How about an overlay comprised of a closed path?
Ian Gilman
@iangilman
Mar 24 2016 22:40
@IllyaMoskvin Sounds good. I look forward to seeing the plug-in!
@dwrogers Good questions! @avandecreme ^
Illya Moskvin
@IllyaMoskvin
Mar 24 2016 22:41
@iangilman Thanks, I'm working on it now! Tentatively, might take about a week, with everything else going on :)
Ian Gilman
@iangilman
Mar 24 2016 22:57
Sounds good :)