【发布时间】:2021-09-03 00:26:46
【问题描述】:
如果我们在 following format 中有 IIIF info.json:
{
"@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" ]
} ]
}
我怎样才能一个接一个地以高质量的方式获取所有图像的图块?
我观察了浏览器的请求,找不到合法和非法请求的模式。
这些请求是合法的(要查看您需要的图像,请先进入the library website,然后放大和缩小下一个链接即可):
- 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 文档 here,但没有帮助。
【问题讨论】:
标签: json image url request iiif