This commit is contained in:
Ross
2021-11-11 14:55:57 +00:00
parent 77d5047f0c
commit ffeac9c30e
+4 -2
View File
@@ -477,9 +477,11 @@
const element = $("<div class='thumb'></div>").get(0)
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
file
);
cornerstone.enable(element);
cornerstone.loadAndCacheImage(reader.result).then(function(image) {
cornerstone.loadAndCacheImage(imageId).then(function(image) {
cornerstone.displayImage(element, image);
});