We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732105e commit be5e235Copy full SHA for be5e235
src/metadata.js
@@ -22,7 +22,10 @@ function formatImageMetadata(metadata) {
22
const sharedFunctionalGroupsSequence = metadata['52009229']['Value'][0];
23
const pixelMeasuresSequence = sharedFunctionalGroupsSequence['00289110']['Value'][0];
24
const pixelSpacing = pixelMeasuresSequence['00280030']['Value'];
25
- const numberOfFrames = Number(metadata['00280008']['Value'][0]);
+ let numberOfFrames = 1;
26
+ if ('00280008' in metadata) {
27
+ numberOfFrames = Number(metadata['00280008']['Value'][0]);
28
+ }
29
30
/*
31
* The values "TILED_SPARSE" and "TILED_FULL" were introduced in the 2018
0 commit comments