Restore full image from IIIF json

247 Views Asked by At

If we have IIIF info.json in the following format:

{
  "@context" : "http://iiif.io/api/image/2/context.json",
  "@id" : "http://iiif.nli.org.il/IIIF/FL47675519",
  "protocol" : "http://iiif.io/api/image",
  "width" : 6000,
  "height" : 4784,
  "sizes" : [ {
    "width" : 46,
    "height" : 37
  }, {
    "width" : 93,
    "height" : 74
  }, {
    "width" : 187,
    "height" : 149
  }, {
    "width" : 375,
    "height" : 299
  } ],
  "tiles" : [ {
    "width" : 1024,
    "height" : 1024,
    "scaleFactors" : [ 1, 2, 4, 8, 16, 32, 64, 128 ]
  } ],
  "profile" : [ "http://iiif.io/api/image/2/level1.json", {
    "formats" : [ "jpg" ],
    "qualities" : [ "native", "color", "gray" ],
    "supports" : [ "regionByPct", "regionSquare", "sizeByForcedWh", "sizeByWh", "sizeAboveFull", "rotationBy90s", "mirroring" ]
  } ]
}

How can I get all of the image's tiles in a high-quality one after the other?

I observed the browser's request and couldn't find a pattern for legitimate and illegal requests.

These requests are legitimate (to see the images you need first get into the library website and after some zoom-in and zoom-out the next link will work):

However, these are not valid:

So, what should I do to iterate all over the image tiles?

I tried reading the IIIF documentation here, but it didn't help.

1

There are 1 best solutions below

0
On