Page 1 of 1

Converting JPG to DCM files

Posted: 2012-02-29T02:11:07-07:00
by superot
Hi there,
I try to convert a JPG file to a DCM (DICOM) file.

The command I give:
convert Pic2.JPG Pic2.DCM
The reply I'm getting:
convert:exe: no encode delegate for this image formar 'Pic2.DCM' @ error/constitute.c/WriteImage/1195.

I would like to add that:
1. I DO get a file called "Pic2.DCM", but can't open it with the Xeleris (our DICOM files reader).
2. I did the dame with some tiff files and got the same result.

I use ImageMagic 6.7.5-7 Q16, under Win Xp Pro. I run the commands under command window (cmd).

Thank you very much!

Re: Converting JPG to DCM files

Posted: 2012-02-29T04:08:20-07:00
by jespa
Hi,

Current version of ImageMagick can only read DICOM file format, not write it.

See http://www.imagemagick.org/script/formats.php

Re: Converting JPG to DCM files

Posted: 2012-02-29T07:12:27-07:00
by superot
Thank you, Jespa, for your answer and the link. For some reason, I was sure that ImageMagic can also create DCM files.

Anyway, I've found a solution to the problem: Apparently, on the Xeleris3 (the work station I use), there is an option to add JPG files to the patient's case.

Note to developers: the JPG files I used were converted from TIFF files. When I opened (with the Xeleris) the files I've converted with ImageMagic, I got a very poor imaging - there was some problem with the colors. But there was no such problem with the files I've converted with Windows Paint.