From b3082e93c43e998dff1df4d6256417e9cd2c9409 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 19 Jan 2023 13:17:11 -0500 Subject: [PATCH] fix(index): url specified label images now downsampled with label pipeline --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 1ea054f3..fbabbf29 100644 --- a/src/index.js +++ b/src/index.js @@ -47,7 +47,7 @@ async function makeImage({ image, progressCallback, isLabelImage = false }) { const imageUrlObj = new URL(image, document.location) if (isZarr(image)) { - return await toMultiscaleSpatialImage(imageUrlObj, isLabelImage) + return toMultiscaleSpatialImage(imageUrlObj, isLabelImage) } const result = await readImageArrayBuffer( @@ -56,7 +56,8 @@ async function makeImage({ image, progressCallback, isLabelImage = false }) { imageUrlObj.pathname.split('/').pop() ) result.webWorker.terminate() - return await toMultiscaleSpatialImage(result.image) + + return toMultiscaleSpatialImage(result.image, isLabelImage) } async function parseImageArg(image, progressCallback) {