app/views/riiif/images/view.html.erb in riiif-0.0.2 vs app/views/riiif/images/view.html.erb in riiif-0.0.3

- old
+ new

@@ -4,12 +4,12 @@ var viewer = OpenSeadragon({ id: "openseadragon1", prefixUrl: "/assets/openseadragon/", tileSources: [{ "image_host": "http://localhost:8080/image-service", - "identifier": "irises", - "width": 4264, - "height": 3282, + "identifier": "<%= @image.id %>", + "width": <%= @image.info[:width] %>, + "height": <%= @image.info[:height] %>, "scale_factors": [1, 2, 3, 4, 5], "tile_width": 1024, "tile_height": 1024, "formats": [ "jpg", "png" ], "qualities": ["native", "bitonal", "grey", "color"],