These are chat archives for openseadragon/openseadragon

5th
Mar 2015
mmcorreia
@mmcorreia
Mar 05 2015 21:11
Help needed. I'm new to openseadragon. I've already have it on my server, and used deepzoom to create images. I can't seem to find the path to the dzi files.
Jeremy Shipman
@jedateach
Mar 05 2015 21:29
@mmcorreia Have you got a web server installed to server the images from some location?
Do you mean the file path on the server? That would be something to find out from deep zoom docs / support.
OpenSeaDragon is just the client-side viewer, and doesn’t deal with generation of images.
mmcorreia
@mmcorreia
Mar 05 2015 21:34
Hi. I tried to look at the support, and . Let me try to rephrase it. I have OpenSeaDragon on my server and downloaded Deep Zoom Composer to create images. I can't seem to find a .dzi extension to create a path. I'm actually using Joomla and I got this message: Unable to open [object Object]: HTTP 0 attempting to load TileSource [you can check it here: http://miguelmimosocorreia.pt/fernandopessoa/ ]
Ian Gilman
@iangilman
Mar 05 2015 21:36
@mmcorreia After you created the images, did you upload the resulting files to your server?
mmcorreia
@mmcorreia
Mar 05 2015 21:37
Yes, I did.
Ian Gilman
@iangilman
Mar 05 2015 21:37
And where on your server did you put them?
mmcorreia
@mmcorreia
Mar 05 2015 21:38
Actually, i put them inside a seperate folder inside openseadragon directory.
Ian Gilman
@iangilman
Mar 05 2015 21:38
Sounds fair. What's the exact path?
mmcorreia
@mmcorreia
Mar 05 2015 21:39

<div id="openseadragon1" style="width: 700px; height: 400px;"> </div>

<script type="text/javascript" src="http://www.miguelmimosocorreia.pt/fernandopessoa/openseadragon/openseadragon.min.js"></script>
<script type="text/javascript">
var viewer = OpenSeadragon({
id: "openseadragon1",
prefixUrl: "http://www.miguelmimosocorreia.pt/fernandopessoa/openseadragon/images/",
tileSources: "http://www.miguelmimosocorreia.pt/fernandopessoa/openseadragon/images/teste/dzc_output_images/bn-acpc-e-e3-1-1-89_0005_3_t24-c-r0150.xml"
});
</script>

I used this script on the joomla article
probably the filename is wrong, i was trying multiple files to see if it worked
Jeremy Shipman
@jedateach
Mar 05 2015 21:40
@iangilman should his tileSources url be relative to the prefixUrl?
oh never mind
Ian Gilman
@iangilman
Mar 05 2015 21:41
@mmcorreia Try using a relative URL, like /fernandopessoa/openseadragon/images/teste/dzc_output_images/bn-acpc-e-e3-1-1-89_0005_3_t24-c-r0150.xml
mmcorreia
@mmcorreia
Mar 05 2015 21:41
ok let me try
Jeremy Shipman
@jedateach
Mar 05 2015 21:42
does openseadragon automatically detect the file extension, and parse accordingly?
Ian Gilman
@iangilman
Mar 05 2015 21:42
Yup, it should work... http://www.miguelmimosocorreia.pt/fernandopessoa/ already works
The error in the console is a cross origin error, because you were trying to access www.miguelmimosocorreia.pt from miguelmimosocorreia.pt
mmcorreia
@mmcorreia
Mar 05 2015 21:43
it does ! :) So this should be the file to use, the one inside dzc_output_images, right?
Ian Gilman
@iangilman
Mar 05 2015 21:43
@jedateach It does do automatic parsing, though I don't recall whether it uses the extension or bases it on the actual returned data
Jeremy Shipman
@jedateach
Mar 05 2015 21:44
cool
Do you know if that is a single image or an image collection?
mmcorreia
@mmcorreia
Mar 05 2015 21:45
it's a single image
Ian Gilman
@iangilman
Mar 05 2015 21:45
Cool, then it sounds like you're set!
Jeremy Shipman
@jedateach
Mar 05 2015 21:46
@iangilman FYI - I’ve been following this gitter and zoomhub for a couple of weeks now. I’m currently working on the ability to select + drag/resize areas on the image.
mmcorreia
@mmcorreia
Mar 05 2015 21:47
@iangilman just one more question, so the path is always the file inside dzc_output_images? I haven't tried collections yet...
Ian Gilman
@iangilman
Mar 05 2015 21:47
If I was putting the project together, I think I would put my OSD images in a separate folder next to the openseadragon folder, since one is stuff you are changing, and the other is code you're getting from us, but it's no big deal
@mmcorreia Yes, it's that XML file. (It's fine if it's .dzi but it doesn't need to be, and in fact servers probably prefer .xml).
@jedateach Awesome. That's a popular activity. Might be cool to have a plugin that does that
Jeremy Shipman
@jedateach
Mar 05 2015 21:49
yeah - hoping to opensource whatever I come up with
mmcorreia
@mmcorreia
Mar 05 2015 21:49
Many thanks.
Ian Gilman
@iangilman
Mar 05 2015 21:50
@mmcorreia If you do want to have multiple images in the same viewer, it is possible, just not with the DZC format explicitly. Also, you would need to upgrade to the version of the code on master: we haven't officially released that feature yet
@jedateach That would be awesome! Let me know if you have any questions along the way
Jeremy Shipman
@jedateach
Mar 05 2015 21:53
@iangilman Yes, definitely. I’m primarily a PHP dev, so I’ll probably ask a fair bit about good practices & how to get set up. I have got a basic level of understanding (in things such as this vs self, prototype inheritance, and the call function), but will try glean as much from you guys as I can :D
Ian Gilman
@iangilman
Mar 05 2015 21:55
Sounds good :)
Here is my list of JavaScript resources: https://github.com/iangilman/learning-javascript
mmcorreia
@mmcorreia
Mar 05 2015 21:57
@iangilman Hmm... since I'm working on a library project, dealing with special collections, maybe the best way of achieving something like that is to create an image gallery and each image with it's individual viewer...
Jeremy Shipman
@jedateach
Mar 05 2015 21:57
awesome thanks ! I’ve done some reading on http://superherojs.com/ = good :+1:
Ian Gilman
@iangilman
Mar 05 2015 21:57
:)
@mmcorreia That's certainly one way to do it!
Ian Gilman
@iangilman
Mar 05 2015 21:58
If you want to go fancier, you could do something like: http://iangilman.com/osd/test/demo/m2/
mmcorreia
@mmcorreia
Mar 05 2015 21:58
this seems interesting as well.
Ian Gilman
@iangilman
Mar 05 2015 21:58
But yes, the tilesource sequence is a good option
mmcorreia
@mmcorreia
Mar 05 2015 21:59
I just miss some documentation.
Basic "how-to" docs to non tech guys like me :)
Ian Gilman
@iangilman
Mar 05 2015 22:01
Fair enough...we should definitely improve that
Meanwhile keep asking questions! :)
mmcorreia
@mmcorreia
Mar 05 2015 22:03
I just tried this today, still studying. so I'll refrain not to overload people... for now :)
Ian Gilman
@iangilman
Mar 05 2015 22:04
Well, if you just started today, I'd say you're doing pretty well!
mmcorreia
@mmcorreia
Mar 05 2015 22:06
:) thanks.
couldn't make it without your help.
Ian Gilman
@iangilman
Mar 05 2015 22:07
:bow:
Jeremy Shipman
@jedateach
Mar 05 2015 22:22
@iangilman have you done or come accross any work involving overlaying a grid onto an image?
My work on selecting regions will also requires snapping to grid.
Ian Gilman
@iangilman
Mar 05 2015 22:23
Like a visual grid?
Jeremy Shipman
@jedateach
Mar 05 2015 22:23
it will be inivisble
Ian Gilman
@iangilman
Mar 05 2015 22:23
Gotcha. No, I haven't.
Jeremy Shipman
@jedateach
Mar 05 2015 22:23
my project is basically allowing users to select blocks, and upload an image to that part of the whole image
Ian Gilman
@iangilman
Mar 05 2015 22:24
Should be pretty easy though, just round the mouse values to the nearest grid line
Jeremy Shipman
@jedateach
Mar 05 2015 22:24
yeah
Ian Gilman
@iangilman
Mar 05 2015 22:24
Interesting...sounds cool! I'd love to see the resulting piece
I suppose it would always be changing over time
Jeremy Shipman
@jedateach
Mar 05 2015 22:25
yep - thats the idea
so some back-end trickery required also
I’ve tested using vips to merge a small image with a large, and then re-split
but that process is slow, so will need to look at ways of combining pieces to directly create tiles
and obviously update the upper parts of the tree
Ian Gilman
@iangilman
Mar 05 2015 22:26
Cool. Certainly seems possible