x86_64 and DICOM get 'Insufficient image data in file'

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
sandysandy

x86_64 and DICOM get 'Insufficient image data in file'

Post 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.
sandysandy

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

Post by sandysandy »

redhat el5, ImageMagick-6.2.8.0-3.el5.4
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
sandysandy

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

Post by sandysandy »

ok, get here: http://www.dc.baikal.ru/test.dcm ~534Kb.
Post Reply