Skip to content

Commit

Permalink
fix(index): url specified label images now downsampled with label pip…
Browse files Browse the repository at this point in the history
…eline
  • Loading branch information
PaulHax committed Jan 19, 2023
1 parent 589508c commit b3082e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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) {
Expand Down

0 comments on commit b3082e9

Please sign in to comment.