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 ) {