Page 1 of 1

x86_64 and DICOM get 'Insufficient image data in file'

Posted: 2007-11-30T01:09:01-07:00
by sandysandy
running with verbose

in x86_64 platform:
convert: Insufficient image data in file `test.dcm'.
convert: missing an image filename `test.jpg'.
0x01AA 4294967295 SQ- (0x0008,0x1140) Referenced Image Sequence

same in i386 platform:
0x01AA 0 SQ- (0x0008,0x1140) Referenced Image Sequence: -1
good result.

possible correct patch:

Code: Select all

--- a/coders/dcm.c      2007-11-30 16:04:46.000000000 +0800
+++ b/coders/dcm.c      2007-11-30 15:56:10.000000000 +0800
@@ -2850,7 +2850,7 @@
         quantum=1;
       else
         quantum=8;
-      if (datum != -1)
+      if (datum != 0xFFFFFFFF)
         length=(size_t) datum/quantum;
       else
         {
Regards.

Re: x86_64 and DICOM get 'Insufficient image data in file'

Posted: 2007-11-30T01:10:28-07:00
by sandysandy
redhat el5, ImageMagick-6.2.8.0-3.el5.4

Re: x86_64 and DICOM get 'Insufficient image data in file'

Posted: 2007-11-30T10:01:43-07:00
by magick
Can you post a URI to your DICOM image so we can download and reproduce the problem and verify any patch we apply. Thanks.

Re: x86_64 and DICOM get 'Insufficient image data in file'

Posted: 2007-12-03T05:20:58-07:00
by sandysandy
ok, get here: http://www.dc.baikal.ru/test.dcm ~534Kb.