Page 1 of 1

Error while converting DICOM Files

Posted: 2017-09-27T05:39:08-07:00
by BlackJaguar
Hi Community,

I am facing problems with dcm files. I want to convert into JPG.
Some of them has jpeg 2000 lossless image attached and i think that's the problem because some others dcm which contains 'default' jpeg, im be able to convert them.

Im using win7 x64 - Version: ImageMagick 7.0.7-4 Q16 x64 2017-09-23

32 LT-LT (0x0020,0x4000) Image Comments: JPEG 2000 reversible (lossless)

magick: Tile part length size inconsistent with stream length
`OpenJP2' @ error/jp2.c/JP2ErrorHandler/193.
magick: unable to decode image file `C:/Users/ogtmorei/AppData/Local/Temp/magick-3816SeyMh_9fgVwW' @ error/jp2.c/ReadJP2

Could someone help me please?

Cheers

Re: Error while converting DICOM Files

Posted: 2017-09-27T05:45:08-07:00
by snibgo
I suggest you link to an example input. Please also give the command you used.

Re: Error while converting DICOM Files

Posted: 2017-09-27T06:07:14-07:00
by BlackJaguar
magick VL5_J2KR.dcm example.jpg

Re: Error while converting DICOM Files

Posted: 2017-09-27T06:33:46-07:00
by snibgo
And a link to VL5_J2KR.dcm ?

Re: Error while converting DICOM Files

Posted: 2018-04-05T01:59:08-07:00
by mr.gate
Hi, I'm having the same problem with a DICOM file containing 16 lossless JPEG frames.
I donwloaded ImageMagick source and build them from scratch. Following some older post some say to download it and "build ImageMagick with the lossless patch to the JPEG delegate library".
Following instruction I compiled the "configure" module, than run it, but find no way to ask for lossless JPEG patch.
The compiled ImageMagick works, but offers no support for that kind of files.
Any idea?