On Mon, Jul 17, 2017 at 4:46 PM, Yaroslav Halchenko <y...@debian.org> wrote: > > On Mon, 17 Jul 2017, Mathieu Malaterre wrote: >> > sorry... could you please provide a complete tiny "script" since in the >> > above list of steps I just see > >> > cp ~/buggy.dcm bug2/jpeg.dcm > >> > and I see no way to get buggy.dcm and you did say that it worked fine on >> > that downloaded SIEMENS_MOSAIC_12BitsStored-16BitsJPEG.dcm* > >> What I tried to say is: > >> $ cp SIEMENS_MOSAIC_12BitsStored-16BitsJPEG.dcm ~/buggy.dcm > >> does reproduce the symptoms (you'll see the error on your end). > >> Let me know if this still does not make sense, and I'll try to write a >> tiny script otherwise. > > someone needs to write it one way or another and I would > appreciate if you do it ;) trying to undig myself from TODOs here
% cat tiny.sh #!/bin/sh -x pushd /tmp wget -O buggy.dcm "https://sourceforge.net/p/gdcm/gdcmdata/ci/master/tree/SIEMENS_MOSAIC_12BitsStored-16BitsJPEG.dcm?format=raw" mkdir bug1 mkdir bug2 mkdir demo cp buggy.dcm bug1 gdcmconv --raw buggy.dcm bug2/raw.dcm nib-dicomfs /tmp/bug1 /tmp/demo & sleep 5 find /tmp/demo sudo umount /tmp/demo nib-dicomfs /tmp/bug2 /tmp/demo & sleep 5 find /tmp/demo popd Thanks