diff --git a/src/imageLoader/createImage.js b/src/imageLoader/createImage.js index 2d24e0b9..3a5dfac4 100644 --- a/src/imageLoader/createImage.js +++ b/src/imageLoader/createImage.js @@ -138,7 +138,7 @@ function createImage(imageId, pixelData, transferSyntax, options) { maxPixelValue: imageFrame.largestPixelValue, rowPixelSpacing: imagePlaneModule.rowPixelSpacing, rows: imageFrame.rows, - sizeInBytes: imageFrame.pixelData.length, + sizeInBytes: imageFrame.pixelData.byteLength, slope: modalityLutModule.rescaleSlope ? modalityLutModule.rescaleSlope : 1,