.
This commit is contained in:
@@ -672,7 +672,11 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
||||
if (image_url.startsWith("wadouri")) {
|
||||
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
||||
loadCornerstoneThumb();
|
||||
});
|
||||
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
||||
img = $("<img />", {
|
||||
src: image_url,
|
||||
id: "thumb-image-" + id,
|
||||
@@ -685,10 +689,6 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
||||
$("#thumb-" + id).append(img);
|
||||
|
||||
// otherwise try to load it as a dicom
|
||||
} else if (!image_url.startsWith("wadouri")) {
|
||||
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
||||
loadCornerstoneThumb();
|
||||
});
|
||||
} else {
|
||||
|
||||
let url = "wadouri:" + image_url;
|
||||
|
||||
Reference in New Issue
Block a user