Convert .dcm to .jpg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Road Warrior
Posts: 1
Joined: 2015-04-24T16:37:28-07:00
Authentication code: 6789

Convert .dcm to .jpg

Post by Road Warrior »

Using the command line to convert a DICOM (.dcm) image to jpg. On some dicom files I get the following error message:
convert.exe: improper image header 'image.dcm @ error/dcm.c/ReadDCMImage/3144.
The file image.dcm can be viewed with a DICOM viewer and the header can be read using exiftool.exe. I cannot determine what the error actually is since all the attributes appear to be normal.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert .dcm to .jpg

Post by snibgo »

For anyone to look at the problem, I suggest you make available a sample file. Put it on dropbox.com or similar and post the link here.
snibgo's IM pages: im.snibgo.com
Post Reply