cornerstonejs / cornerstone-nifti-image-loader

[Deprecated] Use Cornerstone3D Instead https://cornerstonejs.org/
MIT License
56 stars 27 forks source link

Unable to load a minimal-sized NIFTI file. #51

Closed ArchaTrenser closed 2 years ago

ArchaTrenser commented 2 years ago

Issue : Unable to load a minimal-sized NIFTI file.

Fix : The reason for this is that, when compressing data imageData may not be as large as the headerOffset value for imageData. If we compare the length of imageData with headerOffset, it will be less and will consider it to have insufficient data. As a result, it will wait for the next chunk and return which keeps it waiting.

As a solution, we changed the order of finding pako inflators and compared that result with the headoffset.

ohif-bot commented 2 years ago

:tada: This PR is included in version 1.0.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: