From 4e9134f66aea9b3b82cdfbeb3b660f3ab5934d9b Mon Sep 17 00:00:00 2001 From: Richard Benjamin Allen Date: Mon, 22 Jan 2024 09:43:02 +0000 Subject: [PATCH 1/2] Fix #2454, add webp to supported image formats --- src/openseadragon.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 2cb2ac0d..4ee5c28b 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -2607,7 +2607,8 @@ function OpenSeadragon( options ){ * jpg: true, * png: true, * tif: false, - * wdp: false + * wdp: false, + * webp: true * } * * @function @@ -2673,7 +2674,8 @@ function OpenSeadragon( options ){ jpg: true, png: true, tif: false, - wdp: false + wdp: false, + webp: true }, URLPARAMS = {}; From 362a0605124baa90b8ca2bdba477d9b36da48371 Mon Sep 17 00:00:00 2001 From: Richard Benjamin Allen Date: Thu, 25 Jan 2024 16:47:51 +0000 Subject: [PATCH 2/2] Fix, change set supported format example --- src/openseadragon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 4ee5c28b..ffe198a7 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -2613,8 +2613,8 @@ function OpenSeadragon( options ){ * * @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. */