Skip to content

Instantly share code, notes, and snippets.

@jeremy-code
Created December 31, 2025 01:26
Show Gist options
  • Select an option

  • Save jeremy-code/78f08a7c00ec01c9844065757e9b2f3c to your computer and use it in GitHub Desktop.

Select an option

Save jeremy-code/78f08a7c00ec01c9844065757e9b2f3c to your computer and use it in GitHub Desktop.
Dezoomify

Suppose you are using lovasoa/dezoomify-rs to extract an image.

Easiest way would be to use the dezoomify extension (lovasoa/dezoomify-extension), zooming in, clicking on the extension icon, which will pop up the dezoomify website with the url pre-filled.

Alternatively, inspect element, network tab, select XHR or Fetch/XHR and look for a JSON fetch request to a info.json of something like this:

{
  "@context": "http://iiif.io/api/image/2/context.json",
  "@id": "https://numerabilis.u-paris.fr/iiif/2/bibnum:90146x1805x09:0097",
  "protocol": "http://iiif.io/api/image",
  "width": 1422,
  "height": 2311,
  "sizes": [
    { "width": 89, "height": 144 },
    // ...
  ],
  "tiles": [{ "width": 512, "height": 512, "scaleFactors": [1, 2, 4, 8, 16] }],
  "profile": [
    "http://iiif.io/api/image/2/level2.json",
    {
      "formats": [ "jpg", "tif", "gif", "png"],
      "maxArea": 6572484,
      "qualities": [
        // ...
      ],
      "supports": [
        // ...
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment