mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Merge pull request #2455 from BeebBenjamin/webp-support
Fix #2454, add webp to supported image formats
This commit is contained in:
commit
4811dd0320
@ -2607,13 +2607,14 @@ function OpenSeadragon( options ){
|
|||||||
* jpg: true,
|
* jpg: true,
|
||||||
* png: true,
|
* png: true,
|
||||||
* tif: false,
|
* tif: false,
|
||||||
* wdp: false
|
* wdp: false,
|
||||||
|
* webp: true
|
||||||
* }
|
* }
|
||||||
* </code></pre>
|
* </code></pre>
|
||||||
* @function
|
* @function
|
||||||
* @example
|
* @example
|
||||||
* // sets webp as supported and png as unsupported
|
* // sets bmp as supported and png as unsupported
|
||||||
* setImageFormatsSupported({webp: true, png: false});
|
* setImageFormatsSupported({bmp: true, png: false});
|
||||||
* @param {Object} formats An object containing format extensions as
|
* @param {Object} formats An object containing format extensions as
|
||||||
* keys and booleans as values.
|
* keys and booleans as values.
|
||||||
*/
|
*/
|
||||||
@ -2673,7 +2674,8 @@ function OpenSeadragon( options ){
|
|||||||
jpg: true,
|
jpg: true,
|
||||||
png: true,
|
png: true,
|
||||||
tif: false,
|
tif: false,
|
||||||
wdp: false
|
wdp: false,
|
||||||
|
webp: true
|
||||||
},
|
},
|
||||||
URLPARAMS = {};
|
URLPARAMS = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user