From 1f7226dc1086ef1922ce5bf1c27d5ef553a968c0 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 22:01:15 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 9c2f5bdb..f37b0cc6 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -478,14 +478,15 @@ let imageId; if (el.files[0].type.startsWith("image")) { - imageId = `${url}`; base = await blobToBase64(el.files[0]); imageId = "base64://" + base.split(",")[1]; + imageId2 = base; } else { imageId = `wadouri:${url}`; + imageId2 = imageId } console.log(imageId) - const element = $(`
`).get(0) + const element = $(`
`).get(0) $(el).parent().parent().prepend(element); cornerstone.enable(element); cornerstone.loadAndCacheImage(imageId).then(function (image) {