Merge pull request #2455 from BeebBenjamin/webp-support

Fix #2454, add webp to supported image formats
This commit is contained in:
Ian Gilman 2024-01-25 11:23:25 -08:00 committed by GitHub
commit 4811dd0320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {};