[magick-users] convert .dcm to .jpg
travis noll
travisjnoll at yahoo.com
Thu Dec 21 11:53:08 CST 2006
I've finally gotten the libjpeg-6b to compile once
patched by ljpeg-6b. After that I created a fresh
IM6.3.1 which passes the basic test, and a great deal
of the make check tests. It fails on tiff,
ghostscript, png, jp2, jbig, fpx, and ept modules.
I'm suffering:
tjn$ convert view0001.dcm view0001.jpg
convert: Unsupported JPEG process: SOF type 0xc3
`/var/tmp/magick-lrPBkNLV'.
convert: missing an image filename `view0001.jpg'.
My first two guesses are
1. My new jpeg binaries aren't being used as the
necessary delegate. I don't know how to tell
ImageMagic to use them.
or
2. I am invoking the command incorrectly.
when I -verbose it I get 318 lines of output. This is
the most image related info I tracked down.
0x1092 1 US-US (0x0028,0x0002) Samples per Pixel: 1
0x109C 12 CS-CS (0x0028,0x0004) Photometric
Interpretation: MONOCHROME2
0x10B0 1 US-US (0x0028,0x0010) Rows: 256
0x10BA 1 US-US (0x0028,0x0011) Columns: 256
0x10C4 14 DS-DS (0x0028,0x0030) Pixel Spacing:
0.9375\0.9375
0x10DA 1 US-US (0x0028,0x0100) Bits Allocated: 16
0x10E4 1 US-US (0x0028,0x0101) Bits Stored: 16
0x10EE 1 US-US (0x0028,0x0102) High Bit: 15
0x10F8 1 US-US (0x0028,0x0103) Pixel
Representation: 1
0x1102 1 SS-SS (0x0028,0x0106) Smallest Image Pixel
Value: 0
0x110C 1 SS-SS (0x0028,0x0107) Largest Image Pixel
Value: 516
0x1116 1 SS-SS (0x0028,0x0120) Pixel Padding Value:
0
0x1120 4 DS-DS (0x0028,0x1050) Window Center: 258
0x112C 4 DS-DS (0x0028,0x1051) Window Width: 516
0x1138 2 CS-CS (0x0028,0x2110) Lossy Image
Compression: 00
Much thanks for looking.
-Travis
--- omicronpersei8 at imagemagick.org wrote:
> > I've found testimonies of successful dcm->jpg
>
> Those DCM images were most likely not losslessly
> compressed JPEG or
> they have a version of ImageMagick that supports
> lossless compression.
> The lossless compression patch I mention is against
> the JPEG delegate
> library, not ImageMagick. You can find it here:
>
>
>
ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ljpeg-6b.tar.gz
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Magick-users
mailing list