ProjectMirador / m1

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations. This repository is no longer maintained, for further project details, see the latest version at http://github.com/IIIF/mirador.
Other
40 stars 9 forks source link

Integrate LegacyTileSource when only static image #130

Open azaroth42 opened 10 years ago

azaroth42 commented 10 years ago

Requirements would be that the Image have an explicit height and width associated with the URL.

OSD Instantiation:

    var viewer = OpenSeadragon({
        id: "openseadragon1",
        tileSources: [
        {type: 'legacy-image-pyramid',
         levels: [{url:'http://www.shared-canvas.org/impl/demo1/res/image-f1r-c.jpg',
             height: 3411, width: 2405}]
        }
        ]
    });

And in the manifest:

{
  "@context":"http://www.shared-canvas.org/ns/context.json",
  "@id":"http://www.example.org/iiif/book1/annotation/p0001-image.json",
  "@type":"oa:Annotation",
  "motivation":"sc:painting",
  "resource": {
    "@id":"http://www.shared-canvas.org/impl/demo1/res/image-f1r-c.jpg",
    "@type":"dctypes:Image",
    "height":3411,
    "width":2405
  },
  "on":"http://www.example.org/iiif/book1/canvas/p1.json"
}

This probably requires #127 to be done first, however.