radiopaedia / dicom-anonymiser

GNU Affero General Public License v3.0
3 stars 5 forks source link

Datamunching (Issue #8) #9

Closed plwp closed 4 years ago

plwp commented 4 years ago

Pixel data was being read in fragments using the concat method to a fragmentBuffer. The fragmentBuffer offset wasn't being set in the first instance causing the first fragment of pixel data to be over-written. ValueRepresentation.ts:317

Added some unit tests and minor fixes.

Read HEX now returns uppercase strings because it looked nicer. I'm hoping that doesn't break anything :|

DanielHeath commented 4 years ago

That's roundtripping correctly for me!