-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
tiles.yaml
29 lines (23 loc) · 1.24 KB
/
tiles.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This is a tiles.yaml file for dezoomify-rs
# For more information about how to adapt this file to your use case, see:
# https://github.com/lovasoa/dezoomify-rs/wiki/Usage-example-for-the-custom-YAML-dezoomer
# The url of individual tiles, where {{ expressions }} will be evaluated using the variables below
url_template: "https://openseadragon.github.io/example-images/highsmith/highsmith_zdata/TileGroup0/3-{{x}}-{{y}}.jpg"
# x_template and y_template tell dezoomify-rs where to place a tile on the canvas once it has been downloaded
# Here, for instance, the tile at (x=1, y=1) goes to position (256, 256)
x_template: "x * tile_size"
y_template: "y * tile_size"
variables:
- { name: x, from: 0, to: 3 } # Image width, in tiles
- { name: y, from: 0, to: 4 } # Image height, in tiles
- { name: tile_size, value: 256 }
headers:
# Specifying a Referer makes the server believe we come from that URL.
Referer: "https://openseadragon.github.io/examples/tilesource-zoomify/"
# Specifying the width and height of the full image is not mandatory,
# But giving them allows dezoomify-rs to work more efficiently.
width: 878
height: 1153
# The title is not mandatory either, but it makes dezoomify-rs
# create a file with an appropriate filename
title: "A Palace"