标签: 技术分享
- 作者帖子
农民工学美术游客
未曾管理员2022年12月11日提醒
可以使用类似IIIF下载获取方法获取大图
以下就方法不推荐
不能在线直接拼图
可以使用dezoomify-rs拼图
github.com/lovas...zoomify-rs命令如下
dezoomify-rs --accept-invalid-certs tiles.yaml result.png
宽高信息可以由此获取
tiles.yaml范例如下
url_template: "https://emuseum.nich.go.jp/img/content/100146001001/1/d6/{{x/256+1}}_{{y/256+1}}.jpeg" variables: - name: x from: 1 to: 7179 step: 256 - name: y from: 1 to: 11633 step: 256 - name: tile_size value: 256 headers: Referer: "https://emuseum.nich.go.jp"
小白猪游客老师请教一下,这么什么问题。
未曾管理员1,YAML 大小写敏感;
2,使用缩进代表层级关系;
3,缩进只能使用空格,不能使用 TAB,不要求空格个数,只需要相同层级左对齐参见: new.shuge.org/meet/...#post-6223
--
下载范例(可在此基础上修改):tiles.yaml
yun.daoon.com/wl/?i...x45rsNZmv1
小白猪游客感谢老师,终于成功了。非常感谢!
农民工学美术游客看了好多帖子,操作的时候一直出问题,不是方法不好用,而是我对这些一无所知,不过真的没有下载到,最后直接下载了所有碎片,一个个拼接吧。
还是谢谢老师们的讲解,如果您有时间,可否给我们这些介绍的再详细些?不胜感激
农民工学美术游客各位老师,按照站长的方法我下载了图片,但是中途卡顿严重,而且经常出现 timeout,还请站长给个建议,谢谢。
未曾管理员@农民工学美术 #12039
有些碎片有丢包,这说明你的网络环境访问外网不太好。
农民工学美术游客是的。有的时候要关掉vpn才可以下载。开着vpn浏览很快,但是下载的时候出现error。
谢谢老师。
未曾管理员@农民工学美术 #12041
因为VPN可能是局部代理,或仅适用于浏览器。
你可以试试加上 参数(--parallelism 8 --retries 8)试试(限制同时下载的碎片数目)。下载可能会慢一些
dezoomify-rs --parallelism 8 --retries 8 tiles.yaml result.jpg
魔法毛竹游客老师您好!目前只下载了 dezoomify-rs Windows版,打开如下图所示。因是计算机编码小白,不知道该如何使用这个软件,请问如上网址的此类文献如何使用 dezoomify-rs 拼图,有具体教程帮助操作么?非常感谢老师百忙之中帮助解答!
岁暮游客未曾先生:此法能否做个完整流程简解,老朽愚钝,望先生一助。恭请道安。
琳游客你好,请问您学会E国宝的拼接方法了吗?请教一下
琳游客各位老师好,为下载e国宝上的《四季山水图》(https://emuseum.nich.go.jp/detail?langId=zh&webView=&content_base_id=100310&content_part_id=0&content_pict_id=0),我参照范例帖子写了如下tiles.yaml文件,但失败了。想请教一下是哪里出了问题?
url_template: "https://emuseum.nich.go.jp/img/content/100310001003/3/d8/{{x/256+1}}_{{y/256+1}}.jpeg"
variables:
- name: x
from: 1
to: 15362
step: 256- name: y
from: 1
to: 29521
step: 256- name: tile_size
value: 256headers:
Referer: "https://emuseum.nich.go.jp"
未曾管理员@琳 #33141
你可以用这个文件测试
yun.daoon.com/wl/?i...x45rsNZmv1
琳游客@未曾 #33142
未曾先生早上好,这个我昨天测试过,是可以的。
琳游客@琳 #33152
我按下面这个来,结果只导出一半的图,为啥啊?
# This is a tiles.yaml file for dezoomify-rs
# For more information about how to adapt this file to your use case, see:
# github.com/lovas...L-dezoomer# The url of individual tiles, where {{ expressions }} will be evaluated using the variables below
url_template: "https://emuseum.nich.go.jp/img/content/100310001003/3/d8/{{x}}_{{y}}.jpeg"# x_template and y_template tell dezoomify-rs where to place a tile on the canvas once it has been downloaded
# Here, for instance, the tile at (x=1, y=1) goes to position (256, 256)
x_template: "x * tile_size"
y_template: "y * tile_size"variables:
- { name: x, from: 1, to: 61 } # Image width, in tiles
- { name: y, from: 1, to: 61 } # Image height, in tiles
- { name: tile_size, value: 256 }headers:
# Specifying a Referer makes the server believe we come from that URL.
Referer: "https://emuseum.nich.go.jp"# Specifying the width and height of the full image is not mandatory,
# But giving them allows dezoomify-rs to work more efficiently.
width: 15362
height: 29521# The title is not mandatory either, but it makes dezoomify-rs
# create a file with an appropriate filename
title: "ABC"
琳游客可以啦可以啦!终于成功啦!!谢谢!!
tigershuai游客@未曾 #11880
这张e国宝里的图https://emuseum.nich.go.jp/detail?langId=ja&webView=&content_base_id=100149&content_part_id=0&content_pict_id=0
开发者工具里没有发现长宽信息
未曾管理员@tigershuai #33197
大致如图
九载游客@琳 #33161
你这个后面怎么操作的啊,成功了啊,我也是只能下载半张。
我要下载这个
emuseum.nich.go.jp/detai...8;webView=
这个代码请您帮我看看对不对
url_template: "https://emuseum.nich.go.jp/img/content/100319004001/1/d6/{{x/256+1}}_{{y/256+1}}.jpeg"
variables:
- name: x
from: 1
to: 3074
step: 256- name: y
from: 1
to: 8047
step: 256- name: tile_size
value: 256headers:
Referer: "https://emuseum.nich.go.jp"
未曾管理员@九载 #78144
已经有更好下载方式~
可参见
new.shuge.org/meet/topic/44783/
九载游客@未曾 #78147
非常感谢
闲人游客
未曾管理员@闲人 #91060
bookget应该支持e 国宝下载吧
闲人游客@未曾 #91065
是的,一般都支持,但是以下三种书中的“神歌抄/毛诗并毛诗正义大雅残卷(纸背) ”在bookget软件界面404报错,另外两种书的上册下载出来的图片缺损,只有最上边一行,完全搞不懂怎么能正常下载……特来求教
e国宝 - 神歌抄
emuseum.nich.go.jp/detai...8;webView=e国宝 - 老子道德经 上下 应安六年九月廿六日书写批注
emuseum.nich.go.jp/detai...ge_id=nulle国宝 - 帝范 上卷
emuseum.nich.go.jp/detai...8;webView=- 作者帖子