dezoomify icon indicating copy to clipboard operation
dezoomify copied to clipboard

emuseum.nich.go.jp

Open jjinijjin opened this issue 3 years ago • 2 comments

Hello everyone,

I am having issues when trying to download https://emuseum.nich.go.jp/img/content/100419001052/52/d6/%7B%7BX%7D%7D_%7B%7BY%7D%7D.jpeg

https://emuseum.nich.go.jp/detail?langId=ja&webView=&content_base_id=100419&content_part_id=0&content_pict_id=0

Dezoomify reports:

Uncaught Error: Unable to load tile.
Check that your internet connection is working and that you can access this url:
https://emuseum.nich.go.jp/img/content/100419001052/52/d6/0_0.jpeg

(https://ophir.alwaysdata.net/dezoomify/zoommanager.js:217)

I don't understand this message. Can someone please help me ?

jjinijjin avatar Jan 09 '22 14:01 jjinijjin

Looks like the first tile is at 1_1, not 0_0

https://emuseum.nich.go.jp/img/content/100419001052/52/d6/1_1.jpeg

desoomify-rs has a custom dezoomer that handles this

https://dezoomify-rs.ophir.dev/

https://github.com/lovasoa/dezoomify-rs/wiki/Usage-example-for-the-custom-YAML-dezoomer

lovasoa avatar Jan 17 '22 16:01 lovasoa

Sorry, I still can't get dezoomify to work with this website. I'm trying the method linked above, but it's not working for me.

I've probably made a mistake somewhere, is anyone able to help me?

This is my tiles.yaml file:

url_template: "https://emuseum.nich.go.jp/img/content/100408002001/1/d5/{{x}}_{{y}}.jpeg"
x_template: "x * tile_size"
y_template: "y * tile_size"
variables:
  - { name: x, from: 1, to: 32 } # Number of tiles on the x axis
  - { name: y, from: 1, to: 8 } # Number of tiles on the y axis
  - { name: tile_size, value: 256 }
headers:
  Referer: "https://emuseum.nich.go.jp/detail?langId=ja&webView=&content_base_id=100408&content_part_id=0&content_pict_id=0"

Brec6 avatar Mar 27 '23 23:03 Brec6