lovasoa / dezoomify

Dezoomify is a web application to download zoomable images from museum websites, image galleries, and map viewers. Many different zoomable image technologies are supported.
https://dezoomify.ophir.dev
GNU General Public License v2.0
674 stars 75 forks source link

emuseum.nich.go.jp #597

Open jjinijjin opened 2 years ago

jjinijjin commented 2 years ago

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 ?

lovasoa commented 2 years ago

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

Brec6 commented 1 year ago

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"