如果我们有info.json
以下格式的 IIIF :
{
"@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" ]
} ]
}
我怎样才能一个接一个地以高质量的方式获得所有图像的图块?
我观察了浏览器的请求,找不到合法和非法请求的模式。
这些请求是合法的(要查看您需要的图像,首先进入图书馆网站,经过一些放大和缩小后,下一个链接将起作用):
- https://iiif.nli.org.il/IIIFv21/FL47675519/0,0,4096,4096/1024,/0/default.jpg
- https://iiif.nli.org.il/IIIFv21/FL47675519/0,4096,4096,688/1024,/0/default.jpg
- https://iiif.nli.org.il/IIIFv21/FL47675519/4096,4096,1904,688/476,/0/default.jpg
但是,这些是无效的:
- https://iiif.nli.org.il/IIIFv21/FL47675519/4096,4096,1904,688/1024,/0/default.jpg
- https://iiif.nli.org.il/IIIFv21/FL47675519/0,2048,4096,688/1024,/0/default.jpg
那么,我应该怎么做才能遍历整个图像图块?
我尝试在这里阅读 IIIF 文档,但没有帮助。