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,
|
||||
* png: true,
|
||||
* tif: false,
|
||||
* wdp: false
|
||||
* wdp: false,
|
||||
* webp: true
|
||||
* }
|
||||
* </code></pre>
|
||||
* @function
|
||||
* @example
|
||||
* // sets webp as supported and png as unsupported
|
||||
* setImageFormatsSupported({webp: true, png: false});
|
||||
* // sets bmp as supported and png as unsupported
|
||||
* setImageFormatsSupported({bmp: true, png: false});
|
||||
* @param {Object} formats An object containing format extensions as
|
||||
* keys and booleans as values.
|
||||
*/
|
||||
@ -2673,7 +2674,8 @@ function OpenSeadragon( options ){
|
||||
jpg: true,
|
||||
png: true,
|
||||
tif: false,
|
||||
wdp: false
|
||||
wdp: false,
|
||||
webp: true
|
||||
},
|
||||
URLPARAMS = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user