Dicom images problem

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
AlexRozen
Posts: 10
Joined: 2018-06-04T08:48:05-07:00
Authentication code: 1152

Dicom images problem

Post by AlexRozen »

Our equipment is producing DCM-files wich are not compatible with common software.
Irfan viewer with plugin can show only the first image, Image Magick 7.0.7-28 says "improper image header `Test.DCM' @ error/dcm.c/ReadDCMImage/3154"

I've uploaded the sample to Google Drive https://drive.google.com/file/d/119_GRi ... sp=sharing
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Dicom images problem

Post by fmw42 »

I think you should discuss this with the producer of the equipment that makes the DCM files. If neither Irfan viewer nor ImageMagick can read it, then something is wrong with the file.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom images problem

Post by magick »

The image appears to be OK which suggests a deficiency in the ImageMagick DCM reader. We'll investigate and see if we can read the image,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Dicom images problem

Post by fmw42 »

Photoshop won't open it either. It says it is missing a DICOM attribute.
AlexRozen
Posts: 10
Joined: 2018-06-04T08:48:05-07:00
Authentication code: 1152

Re: Dicom images problem

Post by AlexRozen »

but inside by a naked eye it seems to have DICOM-like parts. And the "GE Medical Systems/DICOM Part 10 file" label in header :(
Another file, which I've seen before, doesn't contain such label, because of some postprocessing, I suppose.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom images problem

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick within a day or two. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ within a day or two.
AlexRozen
Posts: 10
Joined: 2018-06-04T08:48:05-07:00
Authentication code: 1152

Re: Dicom images problem

Post by AlexRozen »

Awesome work! Downloaded the fresh build and it works like a magick :)

But there is one more issue: the original test file contains 6 images, but ImageMagick identifies, converts or viewes only the first one.
Post Reply