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