File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ class VLWholeSlideMicroscopyImageViewer {
249249 * - metadata (array of DICOM JSON metadata for each image instance)
250250 * - retrieveRendered (whether frames should be retrieved using DICOMweb RetrieveRenderedTransaction)
251251 * - useWebGL (whether WebGL renderer should be used; default: true)
252+ * - mediaType Object: { mimetype, transferSyntaxUID } (Used for setting mediaType in dicomWebClient's retrieveInstanceFrame call)
252253 */
253254 constructor ( options ) {
254255 if ( 'useWebGL' in options ) {
@@ -488,12 +489,13 @@ class VLWholeSlideMicroscopyImageViewer {
488489 } else {
489490 // TODO: support "image/jp2" and "image/jls"
490491 const mimeType = 'image/jpeg' ;
492+
491493 const retrieveOptions = {
492494 studyInstanceUID,
493495 seriesInstanceUID,
494496 sopInstanceUID,
495497 frameNumbers,
496- mimeType
498+ mimeType : ` ${ mimeType } ; transfer-syntax=1.2.840.10008.1.2.4.50`
497499 } ;
498500 options . client . retrieveInstanceFrames ( retrieveOptions ) . then ( ( rawFrames ) => {
499501 const blob = new Blob ( rawFrames , { type : mimeType } ) ;
You can’t perform that action at this time.
0 commit comments