I was wondering how to get started with OpenSeadragon. I have it installed through node.js according to the repository readme on github. Then I was looking at the API and it looks like you have to use the OpenSeadragon.Viewer function. But that is as far as I got. I just want to create a simple page with one deep-zooming image using OpenSeadragon.
You only need node.js if you're going to be modifying the OpenSeadragon source. If you just want to use OpenSeadragon, grab a built version from http://openseadragon.github.io/#download. Then, assuming your project directory looks like so:
project/
dzi/
foo.dzi
foo_files/
...
index.html
openseadragon/
images/
...
openseadragon.js
openseadragon.min.js
Your index.html could look like so:
<html>
<head>
<style type="text/css">
#foo {
width: 400px;
height: 300px;
}
</style>
</head>
<body>
<div id="foo"></div>
<script src="openseadragon/openseadragon.min.js"></script>
<script>
var viewer = OpenSeadragon({
id: 'foo',
prefixUrl: 'openseadragon/images/',
tileSources: 'dzi/foo.dzi'
});
</script>
</body>
</html>
I guess I should add something like this as a "getting started" on the web site!
So, to answer my question,
The dzc_output.xml file is in fact the DZI file. Microsoft sets the filetype to xml as browsers have difficulty with dzi according to information buried on their website.
The OpenSeaDragon website has an example page for Deep Zoom Composer created images. The example, XMLHTTPRequest for DZI XML or JSON, shows how to use DZI, but not XML.
I would like some guidance on this.
The export of Seadragon AJAX from Deep Zoom Composer is a collection of folders, xml files and images,
There is no DZI file anywhere in this collection. The text further states, " OpenSeadragon sniffs for whether the DZI is formatted as XML or JSON", and I don't know what this means.
Should it be possible to use the Deep Zoom Composer generated folder structure and files with the xml file data with OpenSeadragon?