Error while converting DICOM Files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
BlackJaguar
Posts: 2
Joined: 2017-09-27T05:26:21-07:00
Authentication code: 1151

Error while converting DICOM Files

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Error while converting DICOM Files

Post by snibgo »

I suggest you link to an example input. Please also give the command you used.
snibgo's IM pages: im.snibgo.com
BlackJaguar
Posts: 2
Joined: 2017-09-27T05:26:21-07:00
Authentication code: 1151

Re: Error while converting DICOM Files

Post by BlackJaguar »

magick VL5_J2KR.dcm example.jpg
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Error while converting DICOM Files

Post by snibgo »

And a link to VL5_J2KR.dcm ?
snibgo's IM pages: im.snibgo.com
mr.gate
Posts: 2
Joined: 2018-04-05T01:40:01-07:00
Authentication code: 1152

Re: Error while converting DICOM Files

Post 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?
Post Reply