dezoomify-rs icon indicating copy to clipboard operation
dezoomify-rs copied to clipboard

add support for paintingsh.org

Open poorfish opened this issue 3 years ago • 0 comments

Hello, how are you?

for example: http://paintingsh.org/ScaleRuler/?author=%E9%99%88%E6%B4%AA%E7%BB%B6&name=%E8%BE%BE%E6%91%A9

I found some clues, but no idea how to use its for dezoomify-rs, looks like the "Source" of JSON file is the key value, but I can't find the correct URL of xml file.

http://paintingsh.org/ScaleRuler/js/json.json

{
  "Collection": {
    "xmlns": "http://schemas.microsoft.com/deepzoom/2009",
    "MaxLevel": "8",
    "TileSize": "256",
    "Format": "jpg",
    "NextItemId": "172",
    "ServerFormat": "Default",
    "Items": {
      "I": [
        {
          "Id": "0",
          "N": "0",
          "Source": "dzc_output_images/0201.xml",
          "name":"雨竹小鸟",
          "author":"唐寅",
          "path":"dzc_output_images/1_files",
          "Size": {
            "Width": "1786",
            "Height": "4574"
          },
          "ImageSize":{
            "width":33.5,
            "height":86
          },
          "Viewport": {
            "Width": "1",
            "X": "1",
            "Y": "1"
          }
        },
        ...

http://paintingsh.org/ScaleRuler/js/index3.js

            getTileUrl: function( level, x, y ){
                console.log(level, x, y);
                return "./ExportedData/"+loadObj.path+'/'+md5(level )+ '/' +md5 (x + "_" + y + ".jpg");
            },

poorfish avatar Jan 10 '22 08:01 poorfish