How to Use OpenSeaDragon on any Website
OpenSeadragon is an open source project that takes a large image and displays it on a web page as a zoomable and panable image. The large image needs to be converted first. Then code pasted into a page and customized.
Here's a how-to description for the perplexed.
- Download OpenSeadragon, here, and I'll assume you'll download the zip version.
- Unzip it using 7-Zip or whatever.
- Copy the folder 'openseadragon-bin-1.1.1' to the site's local folder and rename it 'openseadragon'.
- Convert your large image: ('Zoom-it' no longer works so don't go there). Download Microsoft's Deep Zoom Composer.
- Install it and open a 'New Project'. Name project and note/edit location.
- On upper right, 'Add Image' which will be imported.
- Click on 'Compose' and then drag the thumbnail of your image (bottom left) into the middle area. Doesn't matter where.
- Click on 'Export' and enter a 'Name' for the output folder. Click to select 'Export as a composition (single image)'. Change location if need be, but leave other defaults.
- Click on 'Export' at bottom right.
- Click 'View Image Folder' when it comes up.
- The folder 'dzc_output_files' contains the converted image.
- Copy it and 'dzc_output.xml' to your 'openseadragon' folder.
- Paste the following code into your page:
<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: "openseadragon/dzc_output.xml"
});
</script>
If page is not in root directory, edit the links as needed. Perhaps a '../openseadr....' is needed.
Upload everything and try it out.
I had to figure out the above to create the following zoomable image. I couldn't find any directions that made sense, so I did what seemed like it might/should work. Unbelieveably it worked the first time. To celebrate, I thought I'd share. Clearly there is a God, one who loves infidels.
Celebrate Everybody Draw Muhammad Day, May 20th.
Try:
The Infidel's Guide to Theism
The Infidel's Guide to Atheism