Skip to content

Commit

Permalink
Introduced custom DATA_ROOT as first step towards issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
tokee committed Aug 18, 2017
1 parent 0793198 commit 9a745bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion juxta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ popd > /dev/null
# If true, images that are smaller than RAW_W*TILE_SIDE * RAW_H*TILE_SIDE are upscaled
# (keeping aspect ration) to fit. If false, such images will have a larger margin
: ${ALLOW_UPSCALE:=false}
# Used to change the location of the generated HTML page, relative to the tiles and generated
# meta-data. Normally this should be blank.
: ${DATA_ROOT:=""}


# The size of the raw (fully zoomed) images, measured in 256x256 pixel tiles.
# RAW_W=4 and RAW_H=3 means (4*256)x(3*256) = 1024x768 pixels.
Expand Down Expand Up @@ -411,7 +415,7 @@ create_html() {
TILE_SOURCES="tileSources: {
Image: {
xmlns: \"http://schemas.microsoft.com/deepzoom/2008\",
Url: \"\",
Url: \"$DATA_ROOT\",
Format: \"$TILE_FORMAT\",
Overlap: \"0\",
TileSize: \"$TILE_SIDE\",
Expand Down

0 comments on commit 9a745bb

Please sign in to comment.