diff --git a/include/itkOutputImage.h b/include/itkOutputImage.h index eb34b46c0..50349c108 100644 --- a/include/itkOutputImage.h +++ b/include/itkOutputImage.h @@ -84,7 +84,7 @@ class ITK_TEMPLATE_EXPORT OutputImage const auto dataAddress = reinterpret_cast< size_t >( wasmImage->GetImage()->GetBufferPointer() ); using ConvertPixelTraits = DefaultConvertPixelTraits; - const auto dataSize = wasmImage->GetImage()->GetPixelContainer()->Size() * sizeof(typename ConvertPixelTraits::ComponentType); + const auto dataSize = wasmImage->GetImage()->GetPixelContainer()->Size() * sizeof(typename ConvertPixelTraits::ComponentType) * ConvertPixelTraits::GetNumberOfComponents(); setMemoryStoreOutputArray(0, index, 0, dataAddress, dataSize); const auto directionAddress = reinterpret_cast< size_t >( wasmImage->GetImage()->GetDirection().GetVnlMatrix().begin() ); diff --git a/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js b/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js index f5f59ca01..4a8896ed4 100644 --- a/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js +++ b/packages/core/typescript/itk-wasm/src/cli/default-image-tag.js @@ -1,2 +1,2 @@ -const defaultImageTag = '20240713-c8dabc4b' +const defaultImageTag = '20240717-6891d4df' export default defaultImageTag