mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge pull request #1889 from abrlam/master
fileFormat is no longer hard coded in Zoomify Tile Source
This commit is contained in:
commit
6648e8fe88
@ -48,6 +48,11 @@
|
|||||||
options.tileSize = 256;
|
options.tileSize = 256;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof options.fileFormat === 'undefined'){
|
||||||
|
options.fileFormat = 'jpg';
|
||||||
|
this.fileFormat = options.fileFormat;
|
||||||
|
}
|
||||||
|
|
||||||
var currentImageSize = {
|
var currentImageSize = {
|
||||||
x: options.width,
|
x: options.width,
|
||||||
y: options.height
|
y: options.height
|
||||||
@ -135,7 +140,7 @@
|
|||||||
var result = 0;
|
var result = 0;
|
||||||
var num = this._calculateAbsoluteTileNumber(level, x, y);
|
var num = this._calculateAbsoluteTileNumber(level, x, y);
|
||||||
result = Math.floor(num / 256);
|
result = Math.floor(num / 256);
|
||||||
return this.tilesUrl + 'TileGroup' + result + '/' + level + '-' + x + '-' + y + '.jpg';
|
return this.tilesUrl + 'TileGroup' + result + '/' + level + '-' + x + '-' + y + '.' + this.fileFormat;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user