diff --git a/test/data/iiif_2_0_tiled_sf1/0,0,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/0,0,256,256/256,/0/default.jpg new file mode 100644 index 00000000..a29c5568 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/0,0,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/0,256,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/0,256,256,256/256,/0/default.jpg new file mode 100644 index 00000000..cb38ba74 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/0,256,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/0,512,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/0,512,256,256/256,/0/default.jpg new file mode 100644 index 00000000..0b44da15 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/0,512,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/0,768,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/0,768,256,256/256,/0/default.jpg new file mode 100644 index 00000000..8cf078fa Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/0,768,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/256,0,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/256,0,256,256/256,/0/default.jpg new file mode 100644 index 00000000..36ecb717 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/256,0,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/256,256,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/256,256,256,256/256,/0/default.jpg new file mode 100644 index 00000000..b57469a8 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/256,256,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/256,512,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/256,512,256,256/256,/0/default.jpg new file mode 100644 index 00000000..7fd76a78 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/256,512,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/256,768,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/256,768,256,256/256,/0/default.jpg new file mode 100644 index 00000000..cf96a405 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/256,768,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/512,0,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/512,0,256,256/256,/0/default.jpg new file mode 100644 index 00000000..ca605428 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/512,0,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/512,256,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/512,256,256,256/256,/0/default.jpg new file mode 100644 index 00000000..41dd14bb Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/512,256,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/512,512,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/512,512,256,256/256,/0/default.jpg new file mode 100644 index 00000000..1b42d53c Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/512,512,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/512,768,256,256/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/512,768,256,256/256,/0/default.jpg new file mode 100644 index 00000000..b3e0f5cb Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/512,768,256,256/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/768,0,7,256/7,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/768,0,7,256/7,/0/default.jpg new file mode 100644 index 00000000..7f08427a Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/768,0,7,256/7,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/768,256,7,256/7,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/768,256,7,256/7,/0/default.jpg new file mode 100644 index 00000000..b21f307b Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/768,256,7,256/7,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/768,512,7,256/7,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/768,512,7,256/7,/0/default.jpg new file mode 100644 index 00000000..4a92be8c Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/768,512,7,256/7,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/768,768,7,256/7,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/768,768,7,256/7,/0/default.jpg new file mode 100644 index 00000000..f167fa29 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/768,768,7,256/7,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/info.json b/test/data/iiif_2_0_tiled_sf1/info.json new file mode 100644 index 00000000..1507348d --- /dev/null +++ b/test/data/iiif_2_0_tiled_sf1/info.json @@ -0,0 +1,31 @@ +{ + "@context": "http://iiif.io/api/image/2/context.json", + "@id": "http://localhost:8000/test/data/iiif_2_0_tiled_sf1", + "protocol": "http://iiif.io/api/image", + "height": 1024, + "width": 775, + "tiles": [ + { + "width": 256, + "scaleFactors": [ + 1 + ] + } + ], + "profile": [ + "http://iiif.io/api/image/2/level1.json", + { + "qualities": [ + "native", + "bitonal", + "grey", + "color" + ], + "formats": [ + "jpg", + "png", + "gif" + ] + } + ] +} diff --git a/test/data/iiif_2_0_tiled_sf1/temp/0,0,512,512/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/temp/0,0,512,512/256,/0/default.jpg new file mode 100644 index 00000000..edb856cc Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/temp/0,0,512,512/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/temp/0,0,775,1024/194,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/temp/0,0,775,1024/194,/0/default.jpg new file mode 100644 index 00000000..be76af06 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/temp/0,0,775,1024/194,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/temp/0,512,512,512/256,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/temp/0,512,512,512/256,/0/default.jpg new file mode 100644 index 00000000..250e76d1 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/temp/0,512,512,512/256,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/temp/512,0,263,512/132,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/temp/512,0,263,512/132,/0/default.jpg new file mode 100644 index 00000000..ca48f792 Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/temp/512,0,263,512/132,/0/default.jpg differ diff --git a/test/data/iiif_2_0_tiled_sf1/temp/512,512,263,512/132,/0/default.jpg b/test/data/iiif_2_0_tiled_sf1/temp/512,512,263,512/132,/0/default.jpg new file mode 100644 index 00000000..baa4ee5d Binary files /dev/null and b/test/data/iiif_2_0_tiled_sf1/temp/512,512,263,512/132,/0/default.jpg differ diff --git a/test/demo/iiif-tiled-sf1.html b/test/demo/iiif-tiled-sf1.html new file mode 100644 index 00000000..d1931e44 --- /dev/null +++ b/test/demo/iiif-tiled-sf1.html @@ -0,0 +1,34 @@ + + + + OpenSeadragon Demo - IIIF Tiled scaleFactors [1] + + + + + +
+

Default OpenSeadragon viewer from IIIF Tile Source.

+

This is for testing the support for scaleFactors [1]

+
+
+ + + diff --git a/test/modules/formats.js b/test/modules/formats.js index e883d53c..b14a5680 100644 --- a/test/modules/formats.js +++ b/test/modules/formats.js @@ -113,6 +113,11 @@ testOpenUrl('iiif_2_0_tiled/info.json', assert); }); + // ---------- + QUnit.test('IIIF 2.0 JSON scaleFactors [1]', function(assert) { + testOpenUrl('iiif_2_0_tiled_sf1/info.json', assert); + }); + // ---------- QUnit.test('IIIF 2.0 JSON, sizes array only', function(assert) { testOpenUrl('iiif_2_0_sizes/info.json', assert);