This commit is contained in:
Ross
2021-11-11 22:37:32 +00:00
parent 9451aedbc9
commit 588741ba24
2 changed files with 30 additions and 31 deletions
+3 -3
View File
@@ -479,14 +479,14 @@
if (el.files[0].type.startsWith("image")) {
base = await blobToBase64(el.files[0]);
imageId = "base64://" + base.split(",")[1];
imageId2 = base;
//imageId2 = base;
} else {
let url = URL.createObjectURL(el.files[0])
imageId = `wadouri:${url}`;
imageId2 = url
//imageId2 = url
}
console.log(imageId)
const element = $(`<div class='temp-thumb' src=${imageId2}></div>`).get(0)
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
$(el).parent().parent().prepend(element);
cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageId).then(function (image) {