@19992

pandabobo
游客

@未曾 #19989

谢谢回复!我刚翻了一下 Dezoomify-rs 的其他帖子,试着写了个 tiles.yaml,不成功,麻烦您看下是不是 tiles.yaml 文件有问题,还是这种方式目前不适用于故宫名画记了呢?

1>

想下的是这张图:https://minghuaji.dpm.org.cn/paint/appreciate?id=6a73e70a583c486586122058f99401bd

2>

"tiles.yaml"文件如下:

url_template: "https://minghuaji-1259446244.cos.ap-beijing.myqcloud.com/bundle/38b1eeea2a93493b8677ff0b1e82ad5c/16/{{x/254}}_{{y/254}}.jpg"

#标红的部分照抄自其他文件,不太清楚什么意思

variables:
- name: x
from: 0
to: 20055
step: 254

- name: y
from: 0
to: 29639
step: 254

- name: tile_size
value: 254

headers:
Referer: "https://minghuaji.dpm.org.cn"

3>

执行后刷屏式报错,只能强制退出,我拷贝了部分如下:

E:\dezoomify-rs>dezoomify-rs -l "tiles.yaml" "2.png"
[ETA:0s] ---------------------------------------- 0/9243 Computing the URLs of the image tiles...
[2021-03-02T10:29:10Z WARN dezoomify_rs] network error: HTTP status client error (404 Not Found) for url (minghuaji-1259446244.cos.ap-beijing.myqcloud.com/bundl...6/0_12.jpg ). Retrying tile download in 2.96s.
[2021-03-02T10:29:10Z WARN dezoomify_rs] network error: HTTP status client error (404 Not Found) for url (minghuaji-1259446244.cos.ap-beijing.myqcloud.com/bundl...16/0_9.jpg ). Retrying tile download in 3.72s.
[2021-03-02T10:29:10Z WARN dezoomify_rs] network error: HTTP status client error (404 Not Found) for url (minghuaji-1259446244.cos.ap-beijing.myqcloud.com/bundl...16/0_0.jpg ). Retrying tile download in 2s.

请问哪里出了问题?

另外,看过往的帖子,有的放大系数是 16,有的是 17,有的是 15,这个在哪里看呢?谢谢!