From db86ae28c8d92c471035f353bfc6cbd6cd8eb968 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Tue, 19 Mar 2019 18:22:09 +0100 Subject: [PATCH] address PR comments --- src/iiiftilesource.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iiiftilesource.js b/src/iiiftilesource.js index f7054643..8c6c11a6 100644 --- a/src/iiiftilesource.js +++ b/src/iiiftilesource.js @@ -42,6 +42,8 @@ * @memberof OpenSeadragon * @extends OpenSeadragon.TileSource * @see http://iiif.io/api/image/ + * @param {String} [options.tileFormat] + * The extension that will be used when requiring tiles (defaults to "jpg"). */ $.IIIFTileSource = function( options ){ @@ -55,7 +57,7 @@ $.IIIFTileSource = function( options ){ options.tileSizePerScaleFactor = {}; - this.tileFormat = "jpg"; + this.tileFormat = this.tileFormat || 'jpg'; // N.B. 2.0 renamed scale_factors to scaleFactors if ( this.tile_width && this.tile_height ) {