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
665 stars 74 forks source link

new site support: catalog.shm.ru #651

Open thomaslee101 opened 2 years ago

thomaslee101 commented 2 years ago

catalog.shm.ru is a museum featuring public domain artworks.

I would like to download this image:

https://catalog.shm.ru/entity/OBJECT/2137429?page=2&query=%20%D0%9F%D1%80%D0%B5%D1%81%D0%B2%D1%8F%D1%82%D0%BE%D0%B9%20%D0%91%D0%BE%D0%B3%D0%BE%D1%80%D0%BE%D0%B4%D0%B8%D1%86%D1%8B&index=89

I inspected the page and tried using url of the smaller tiles and it doesn't work:

https://catalog.shm.ru/api/spf/JM2TGc2UUAT97uG46NzmcY3lQ1DJQQprQUVtGery17OS2n4pA_Hm1L5ddDKs4Qne.jpg?w=512&h=512&cl=0&ct=803&cw=803&ch=803

I can't find any .xml or .json configuration files.

Hope someone can help. thanks

Benomrans commented 2 years ago

@thomaslee101 Hello, Out of curiosity, have changed the tile url you gave, and used the browser directly, so it gave an image of 1435x2000 px. Try it :

https://catalog.shm.ru/api/spf/JM2TGc2UUAT97uG46NzmcY3lQ1DJQQprQUVtGery17OS2n4pA_Hm1L5ddDKs4Qne.jpg?w=4096&h=4096 898765

kabalin commented 1 year ago

@thomaslee101 Hello, Out of curiosity, have changed the tile url you gave, and used the browser directly, so it gave an image of 1435x2000 px.

The problem there is that it is not the real image size which can be retrieved. If one collect all tiles it requests on zoom and joining them together using graphic editor, the real image is much bigger. It seems like api request like that is limited to 2000px, so you never get anything bigger than that by specifying higher values like in your URL example.

Similar service is used by pushkinmuseum.art, e.g. https://collection.pushkinmuseum.art/entity/OBJECT/262426 can be retrieved by https://collection.pushkinmuseum.art/api/spf/w5FUTLZu-JJ-L8YjfHOxsDSPUswUhOTntiUwgFRTMwXYuQQSVq-zDPhxGyrwpSii.jpg?w=15000&h=15000, but it will be limited to 2000px, while tiles it queries on zoom are of higher resolution.

If if this api/spf/... can be supported, whatever service stands behind it, that would be really useful.

Benomrans commented 1 year ago

@kabalin That would be so great indeed especially with those amazing stereo images at Pushkin museum.

agmmnn commented 1 year ago

Hey, I made an app to download zoomify images from State Historical Museum and The Pushkin Museum. It creates the final image by combining the largest possible tilesizes. (note: sometimes there can be some errors) @thomaslee101 @Benomrans @kabalin

repo: https://github.com/agmmnn/pushkin-downloader

edit: Now implemented in dezoomify under the name pnav. https://github.com/lovasoa/dezoomify/pull/704

Benomrans commented 1 year ago

@agmmnn Thank you so much, So great app, Wonderful and works like a charm.

lovasoa commented 1 year ago

Support was added into dezoomify. Thank you very much, @agmmnn !