ImageMagick / ImageMagick

🧙‍♂️ ImageMagick 7
https://imagemagick.org
Other
11.98k stars 1.35k forks source link

Cannot read certain dicom images - identify: improper image header @ error/dcm.c/ReadDCMImage/3204 #7610

Closed LorinWeilenmann closed 1 week ago

LorinWeilenmann commented 1 week ago

ImageMagick version

7.1.1-38 Q16-HDRI

Operating system

Windows

Operating system, version and so on

Windows 11 22631 amd64

Description

DICOM image created by dental x-ray machine (Software Sidexis v4) cannot be identified / converted by ImageMagick. Other softwares (like OneDrive Preview, Radiant Viewer, exiftool) can read the image

I'd like to use ImageMagick to convert these images to png.

Steps to Reproduce

magick identify 000000306_RasterImage.dcm

Images

https://1drv.ms/u/s!AqoGaHdTCWEojNle3nKqgoUUsSvDSA?e=hCc4q5

Link will expire in 2 months, Password for the Link: Abcd1234 (just so random web content grabbers don't have it forever).

dlemstra commented 1 week ago

Attaching the file here for future reference: 000000306_RasterImage.zip

dlemstra commented 1 week ago

I was able to get a output image with a patch that threats group and element both being 0 as an "end". Is this the correct image: 000000306_RasterImage

LorinWeilenmann commented 1 week ago

Yes, this image looks correct

dlemstra commented 1 week ago

I just pushed a patch to make it possible to get that output image. You should be able to read this image in the next release.