Wrong conversion of 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
Posts: 1
Joined: 2016-11-18T07:45:36-07:00
Authentication code: 1151

Wrong conversion of dicom-files

Post by Lyuba » 2016-11-18T07:51:27-07:00

DICOM-files (grayscale, 16 bits) are identified as 8-bits:
identify test.dcm
test.dcm DCM 512x512 512x512+0+0 8-bit sRGB 526KB 0.000u 0:00.000

and convert gives wrong picture for such files:
convert test.dcm test.jpeg
additional parameters don't help:
convert -depth 16 -type grayscale test.dcm test.jpeg

convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-06-01
OS: Ubuntu 16.04, imagemagick 8:

Post Reply