Skip to content

Commit

Permalink
Merge pull request #13 from glenrobson/tile_canonical
Browse files Browse the repository at this point in the history
Adding Canonical parameters to tile requests
  • Loading branch information
glenrobson authored May 11, 2021
2 parents 5530227 + cd5c652 commit f91cfe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>uk.co.gdmrdigital.iiif.image</groupId>
<artifactId>iiif-tiler</artifactId>
<version>0.9.5</version>
<version>0.9.6</version>
<packaging>jar</packaging>
<name>iiif-tiler</name>
<description>A Java based static IIIF tile generator. Static IIIF Tiles can be stored on a web service and provide a zoomable service with a compatible IIIF image viewers. This is known as a level 0 image service.</description>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/uk/co/gdmrdigital/iiif/image/Tiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ protected void generateScaleTiles(final File pImageDir) throws IOException {
}

String url = "./" + tileX + "," + tileY + "," + scaledTileWidth + "," + scaledTileHeight + "/" + tiledWidthCalc + ",/0/default.jpg";
if (_version == InfoJson.VERSION3) {
url = "./" + tileX + "," + tileY + "," + scaledTileWidth + "," + scaledTileHeight + "/" + tiledWidthCalc + "," + tiledHeightCalc + "/0/default.jpg";
}
//System.out.println("Zoom level: " + scale);
//System.out.println(url);
File tOuputFile = new File(pImageDir, url);
Expand Down

0 comments on commit f91cfe6

Please sign in to comment.