Changeset 1334


Ignore:
Timestamp:
03/03/10 12:47:35 (3 years ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/Magick++/lib/Options.cpp

    r747 r1334  
    360360  FormatMagickString( _imageInfo->filename, MaxTextExtent, "%.1024s:", magick_.c_str() ); 
    361361  GetExceptionInfo(&exception); 
    362   SetImageInfo( _imageInfo, MagickTrue, &exception); 
     362  SetImageInfo( _imageInfo, 1, &exception); 
    363363  if ( *_imageInfo->magick == '\0' ) 
    364     throwExceptionExplicit( OptionWarning, 
    365                             "Unrecognized image format", 
    366                             magick_.c_str() ); 
     364    throwExceptionExplicit( OptionWarning, "Unrecognized image format", 
     365            magick_.c_str() ); 
    367366  (void) DestroyExceptionInfo( &exception ); 
    368367} 
  • ImageMagick/trunk/PerlMagick/Magick.xs

    r1143 r1334  
    26562656    (void) CopyMagickString(image->filename,info->image_info->filename, 
    26572657      MaxTextExtent); 
    2658     SetImageInfo(info->image_info,MagickFalse,exception); 
     2658    SetImageInfo(info->image_info,0,exception); 
    26592659    exception=DestroyExceptionInfo(exception); 
    26602660    SvREFCNT_dec(perl_exception); 
     
    38213821    (void) CopyMagickString(image->filename,info->image_info->filename, 
    38223822      MaxTextExtent); 
    3823     SetImageInfo(info->image_info,MagickFalse,exception); 
     3823    SetImageInfo(info->image_info,0,exception); 
    38243824    exception=DestroyExceptionInfo(exception); 
    38253825    SvREFCNT_dec(perl_exception); 
     
    63706370      next->scene=scene++; 
    63716371    } 
    6372     SetImageInfo(package_info->image_info,MagickTrue,&image->exception); 
     6372    SetImageInfo(package_info->image_info,(unsigned int) 
     6373      GetImageListLength(image),&image->exception); 
    63736374    EXTEND(sp,(long) GetImageListLength(image)); 
    63746375    for ( ; image; image=image->next) 
     
    1097510976    (void) CopyMagickString(image->filename,info->image_info->filename, 
    1097610977      MaxTextExtent); 
    10977     SetImageInfo(info->image_info,MagickFalse,&image->exception); 
     10978    SetImageInfo(info->image_info,0,&image->exception); 
    1097810979    exception=DestroyExceptionInfo(exception); 
    1097910980    SvREFCNT_dec(perl_exception); 
     
    1349813499      next->scene=scene++; 
    1349913500    } 
    13500     SetImageInfo(package_info->image_info,MagickTrue,&image->exception); 
     13501    SetImageInfo(package_info->image_info,(unsigned int) 
     13502      GetImageListLength(image),&image->exception); 
    1350113503    for (next=image; next; next=next->next) 
    1350213504    { 
  • ImageMagick/trunk/coders/clip.c

    r769 r1334  
    169169  (void) CopyMagickString(clip_image->filename,image->filename,MaxTextExtent); 
    170170  write_info=CloneImageInfo(image_info); 
    171   (void) SetImageInfo(write_info,MagickTrue,&image->exception); 
     171  (void) SetImageInfo(write_info,1,&image->exception); 
    172172  if (LocaleCompare(write_info->magick,"CLIP") == 0) 
    173173    (void) FormatMagickString(clip_image->filename,MaxTextExtent,"miff:%s", 
  • ImageMagick/trunk/coders/histogram.c

    r918 r1334  
    372372    MaxTextExtent); 
    373373  write_info=CloneImageInfo(image_info); 
    374   (void) SetImageInfo(write_info,MagickTrue,&image->exception); 
     374  (void) SetImageInfo(write_info,1,&image->exception); 
    375375  if (LocaleCompare(write_info->magick,"HISTOGRAM") == 0) 
    376376    (void) FormatMagickString(histogram_image->filename,MaxTextExtent, 
  • ImageMagick/trunk/coders/preview.c

    r769 r1334  
    188188    MaxTextExtent); 
    189189  write_info=CloneImageInfo(image_info); 
    190   (void) SetImageInfo(write_info,MagickTrue,&image->exception); 
     190  (void) SetImageInfo(write_info,1,&image->exception); 
    191191  if (LocaleCompare(write_info->magick,"PREVIEW") == 0) 
    192192    (void) FormatMagickString(preview_image->filename,MaxTextExtent, 
  • ImageMagick/trunk/coders/thumbnail.c

    r784 r1334  
    208208    MaxTextExtent); 
    209209  write_info=CloneImageInfo(image_info); 
    210   (void) SetImageInfo(write_info,MagickTrue,&image->exception); 
     210  (void) SetImageInfo(write_info,1,&image->exception); 
    211211  if (LocaleCompare(write_info->magick,"THUMBNAIL") == 0) 
    212212    (void) FormatMagickString(thumbnail_image->filename,MaxTextExtent, 
  • ImageMagick/trunk/coders/vid.c

    r772 r1334  
    330330    MaxTextExtent); 
    331331  write_info=CloneImageInfo(image_info); 
    332   (void) SetImageInfo(write_info,MagickTrue,&image->exception); 
     332  (void) SetImageInfo(write_info,1,&image->exception); 
    333333  if (LocaleCompare(write_info->magick,"VID") == 0) 
    334334    (void) FormatMagickString(montage_image->filename,MaxTextExtent, 
  • ImageMagick/trunk/coders/xtrn.c

    r1 r1334  
    556556            p->scene=scene++; 
    557557          } 
    558           SetImageInfo(clone_info,MagickTrue,&image->exception); 
     558          SetImageInfo(clone_info,1,&image->exception); 
    559559          (void) CopyMagickString(image->magick,clone_info->magick, 
    560560            MaxTextExtent); 
     
    595595            p->scene=scene++; 
    596596          } 
    597           SetImageInfo(clone_info,MagickTrue,&image->exception); 
     597          SetImageInfo(clone_info,1,&image->exception); 
    598598          (void) CopyMagickString(image->magick,clone_info->magick, 
    599599            MaxTextExtent); 
     
    624624            p->scene=scene++; 
    625625          } 
    626           SetImageInfo(clone_info,MagickTrue,&image->exception); 
     626          SetImageInfo(clone_info,1,&image->exception); 
    627627          (void) CopyMagickString(image->magick,clone_info->magick, 
    628628            MaxTextExtent); 
  • ImageMagick/trunk/magick/animate.c

    r1166 r1334  
    29322932  image_info=CloneImageInfo(resource_info->image_info); 
    29332933  (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
    2934   (void) SetImageInfo(image_info,MagickFalse,&image->exception); 
     2934  (void) SetImageInfo(image_info,1,&image->exception); 
    29352935  if ((LocaleCompare(image_info->magick,"JPEG") == 0) || 
    29362936      (LocaleCompare(image_info->magick,"JPG") == 0)) 
  • ImageMagick/trunk/magick/blob.c

    r1314 r1334  
    341341  blob_info->length=length; 
    342342  if (*blob_info->magick == '\0') 
    343     (void) SetImageInfo(blob_info,MagickFalse,exception); 
     343    (void) SetImageInfo(blob_info,0,exception); 
    344344  magick_info=GetMagickInfo(blob_info->magick,exception); 
    345345  if (magick_info == (const MagickInfo *) NULL) 
     
    13631363  blob_info=CloneImageInfo(image_info); 
    13641364  blob_info->adjoin=MagickFalse; 
    1365   (void) SetImageInfo(blob_info,MagickTrue,exception); 
     1365  (void) SetImageInfo(blob_info,1,exception); 
    13661366  if (*blob_info->magick != '\0') 
    13671367    (void) CopyMagickString(image->magick,blob_info->magick,MaxTextExtent); 
     
    16401640  blob=(unsigned char *) NULL; 
    16411641  blob_info=CloneImageInfo(image_info); 
    1642   (void) SetImageInfo(blob_info,MagickTrue,exception); 
     1642  (void) SetImageInfo(blob_info,(unsigned int) GetImageListLength(images), 
     1643    exception); 
    16431644  if (*blob_info->magick != '\0') 
    16441645    (void) CopyMagickString(images->magick,blob_info->magick,MaxTextExtent); 
  • ImageMagick/trunk/magick/constitute.c

    r1297 r1334  
    343343      read_info=CloneImageInfo(image_info); 
    344344      sans=AcquireExceptionInfo(); 
    345       (void) SetImageInfo(read_info,MagickFalse,sans); 
     345      (void) SetImageInfo(read_info,0,sans); 
    346346      sans=DestroyExceptionInfo(sans); 
    347347      (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); 
     
    443443  read_info=CloneImageInfo(image_info); 
    444444  (void) CopyMagickString(magick_filename,read_info->filename,MaxTextExtent); 
    445   (void) SetImageInfo(read_info,MagickFalse,exception); 
     445  (void) SetImageInfo(read_info,0,exception); 
    446446  (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); 
    447447  (void) CopyMagickString(magick,read_info->magick,MaxTextExtent); 
     
    559559      image=DestroyImageList(image); 
    560560      read_info->temporary=MagickTrue; 
    561       (void) SetImageInfo(read_info,MagickFalse,exception); 
     561      (void) SetImageInfo(read_info,0,exception); 
    562562      magick_info=GetMagickInfo(read_info->magick,exception); 
    563563      if ((magick_info == (const MagickInfo *) NULL) || 
     
    849849      read_info=CloneImageInfo(image_info); 
    850850      sans=AcquireExceptionInfo(); 
    851       (void) SetImageInfo(read_info,MagickFalse,sans); 
     851      (void) SetImageInfo(read_info,0,sans); 
    852852      sans=DestroyExceptionInfo(sans); 
    853853      (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); 
     
    10121012  if (*write_info->magick == '\0') 
    10131013    (void) CopyMagickString(write_info->magick,image->magick,MaxTextExtent); 
    1014   (void) SetImageInfo(write_info,MagickTrue,sans_exception); 
     1014  (void) SetImageInfo(write_info,1,sans_exception); 
    10151015  if (LocaleCompare(write_info->magick,"clipmask") == 0) 
    10161016    { 
     
    10221022        } 
    10231023      image=image->clip_mask; 
    1024       (void) SetImageInfo(write_info,MagickTrue,sans_exception); 
     1024      (void) SetImageInfo(write_info,1,sans_exception); 
    10251025    } 
    10261026  (void) CopyMagickString(filename,image->filename,MaxTextExtent); 
     
    12711271    (void) CopyMagickString(write_info->magick,images->magick,MaxTextExtent); 
    12721272  sans_exception=AcquireExceptionInfo(); 
    1273   (void) SetImageInfo(write_info,MagickTrue,sans_exception); 
     1273  (void) SetImageInfo(write_info,(unsigned int) GetImageListLength(images), 
     1274    sans_exception); 
    12741275  sans_exception=DestroyExceptionInfo(sans_exception); 
    12751276  p=images; 
  • ImageMagick/trunk/magick/delegate.c

    r1228 r1334  
    959959      (void) FormatMagickString(clone_info->filename,MaxTextExtent,"%s:", 
    960960        delegate_info->decode); 
    961       (void) SetImageInfo(clone_info,MagickTrue,exception); 
     961      (void) SetImageInfo(clone_info,(unsigned int) GetImageListLength(image), 
     962        exception); 
    962963      (void) CopyMagickString(clone_info->filename,image_info->filename, 
    963964        MaxTextExtent); 
  • ImageMagick/trunk/magick/display.c

    r1166 r1334  
    1015110151  (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
    1015210152  exception=AcquireExceptionInfo(); 
    10153   (void) SetImageInfo(image_info,MagickFalse,exception); 
     10153  (void) SetImageInfo(image_info,0,exception); 
    1015410154  if (LocaleCompare(image_info->magick,"X") == 0) 
    1015510155    { 
     
    1238112381  image_info=CloneImageInfo(resource_info->image_info); 
    1238212382  (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
    12383   (void) SetImageInfo(image_info,MagickFalse,&image->exception); 
     12383  (void) SetImageInfo(image_info,1,&image->exception); 
    1238412384  if ((LocaleCompare(image_info->magick,"JPEG") == 0) || 
    1238512385      (LocaleCompare(image_info->magick,"JPG") == 0)) 
  • ImageMagick/trunk/magick/image.c

    r1329 r1334  
    30293029% 
    30303030%      MagickBooleanType SetImageInfo(ImageInfo *image_info, 
    3031 %        const MagickBooleanType rectify,ExceptionInfo *exception) 
    3032 % 
    3033 %  A description of each parameter follows: 
    3034 % 
    3035 %    o image_info: the image info.. 
    3036 % 
    3037 %    o rectify: an unsigned value other than zero rectifies the attribute for 
    3038 %      multi-frame support (user may want multi-frame but image format may not 
    3039 %      support it). 
     3031%        const unsigned int frames,ExceptionInfo *exception) 
     3032% 
     3033%  A description of each parameter follows: 
     3034% 
     3035%    o image_info: the image info. 
     3036% 
     3037%    o frames: the number of images you intend to write. 
    30403038% 
    30413039%    o exception: return any errors or warnings in this structure. 
     
    30433041*/ 
    30443042MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info, 
    3045   const MagickBooleanType rectify,ExceptionInfo *exception) 
     3043  const unsigned int frames,ExceptionInfo *exception) 
    30463044{ 
    30473045  char 
     
    30853083      image_info->filename); 
    30863084  *subimage='\0'; 
    3087   GetPathComponent(image_info->filename,SubimagePath,subimage); 
    3088   if (*subimage != '\0') 
    3089     { 
    3090       /* 
    3091         Look for scene specification (e.g. img0001.pcd[4]). 
    3092       */ 
    3093       if (IsSceneGeometry(subimage,MagickFalse) == MagickFalse) 
     3085  if (frames == 0) 
     3086    { 
     3087      GetPathComponent(image_info->filename,SubimagePath,subimage); 
     3088      if (*subimage != '\0') 
    30943089        { 
    3095           if (IsGeometry(subimage) != MagickFalse) 
    3096             (void) CloneString(&image_info->extract,subimage); 
    3097         } 
    3098       else 
    3099         { 
    3100           unsigned long 
    3101             first, 
    3102             last; 
    3103  
    3104           (void) CloneString(&image_info->scenes,subimage); 
    3105           image_info->scene=StringToUnsignedLong(image_info->scenes); 
    3106           image_info->number_scenes=image_info->scene; 
    3107           p=image_info->scenes; 
    3108           for (q=(char *) image_info->scenes; *q != '\0'; p++) 
    3109           { 
    3110             while ((isspace((int) ((unsigned char) *p)) != 0) || (*p == ',')) 
    3111               p++; 
    3112             first=(unsigned long) strtol(p,&q,10); 
    3113             last=first; 
    3114             while (isspace((int) ((unsigned char) *q)) != 0) 
    3115               q++; 
    3116             if (*q == '-') 
    3117               last=(unsigned long) strtol(q+1,&q,10); 
    3118             if (first > last) 
    3119               Swap(first,last); 
    3120             if (first < image_info->scene) 
    3121               image_info->scene=first; 
    3122             if (last > image_info->number_scenes) 
    3123               image_info->number_scenes=last; 
    3124             p=q; 
    3125           } 
    3126           image_info->number_scenes-=image_info->scene-1; 
    3127           image_info->subimage=image_info->scene; 
    3128           image_info->subrange=image_info->number_scenes; 
     3090          /* 
     3091            Look for scene specification (e.g. img0001.pcd[4]). 
     3092          */ 
     3093          if (IsSceneGeometry(subimage,MagickFalse) == MagickFalse) 
     3094            { 
     3095              if (IsGeometry(subimage) != MagickFalse) 
     3096                (void) CloneString(&image_info->extract,subimage); 
     3097            } 
     3098          else 
     3099            { 
     3100              unsigned long 
     3101                first, 
     3102                last; 
     3103 
     3104              (void) CloneString(&image_info->scenes,subimage); 
     3105              image_info->scene=StringToUnsignedLong(image_info->scenes); 
     3106              image_info->number_scenes=image_info->scene; 
     3107              p=image_info->scenes; 
     3108              for (q=(char *) image_info->scenes; *q != '\0'; p++) 
     3109              { 
     3110                while ((isspace((int) ((unsigned char) *p)) != 0) || 
     3111                       (*p == ',')) 
     3112                  p++; 
     3113                first=(unsigned long) strtol(p,&q,10); 
     3114                last=first; 
     3115                while (isspace((int) ((unsigned char) *q)) != 0) 
     3116                  q++; 
     3117                if (*q == '-') 
     3118                  last=(unsigned long) strtol(q+1,&q,10); 
     3119                if (first > last) 
     3120                  Swap(first,last); 
     3121                if (first < image_info->scene) 
     3122                  image_info->scene=first; 
     3123                if (last > image_info->number_scenes) 
     3124                  image_info->number_scenes=last; 
     3125                p=q; 
     3126              } 
     3127              image_info->number_scenes-=image_info->scene-1; 
     3128              image_info->subimage=image_info->scene; 
     3129              image_info->subrange=image_info->number_scenes; 
     3130            } 
    31293131        } 
    31303132    } 
     
    32523254  GetPathComponent(image_info->filename,CanonicalPath,filename); 
    32533255  (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
    3254   if (rectify != MagickFalse) 
     3256  if ((image_info->adjoin != MagickFalse) && (frames > 1)) 
    32553257    { 
    32563258      /* 
    3257         Rectify multi-image file support. 
     3259        Test for multiple image support (e.g. image%02d.png). 
    32583260      */ 
    3259       if (image_info->adjoin != MagickFalse) 
    3260         { 
    3261           (void) InterpretImageFilename(image_info,(Image *) NULL, 
    3262             image_info->filename,(int) image_info->scene,filename); 
    3263           if ((LocaleCompare(filename,image_info->filename) != 0) && 
    3264               (strchr(filename,'%') == (char *) NULL)) 
    3265             image_info->adjoin=MagickFalse; 
    3266         } 
     3261      (void) InterpretImageFilename(image_info,(Image *) NULL, 
     3262        image_info->filename,(int) image_info->scene,filename); 
     3263      if ((LocaleCompare(filename,image_info->filename) != 0) && 
     3264          (strchr(filename,'%') == (char *) NULL)) 
     3265        image_info->adjoin=MagickFalse; 
     3266    } 
     3267  if ((image_info->adjoin != MagickFalse) && (frames > 0)) 
     3268    { 
     3269      /* 
     3270        Some image formats do not support multiple frames per file. 
     3271      */ 
    32673272      magick_info=GetMagickInfo(magic,exception); 
    32683273      if (magick_info != (const MagickInfo *) NULL) 
    32693274        if (GetMagickAdjoin(magick_info) == MagickFalse) 
    32703275          image_info->adjoin=MagickFalse; 
    3271       return(MagickTrue); 
    32723276    } 
    32733277  if (image_info->affirm != MagickFalse) 
    32743278    return(MagickTrue); 
    3275   /* 
    3276     Determine the image format from the first few bytes of the file. 
    3277   */ 
    3278   image=AcquireImage(image_info); 
    3279   (void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent); 
    3280   status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); 
    3281   if (status == MagickFalse) 
    3282     { 
    3283       image=DestroyImage(image); 
    3284       return(MagickFalse); 
    3285     } 
    3286   if ((IsBlobSeekable(image) == MagickFalse) || 
    3287       (IsBlobExempt(image) != MagickFalse)) 
     3279  if (frames == 0) 
    32883280    { 
    32893281      /* 
    3290         Copy standard input or pipe to temporary file. 
     3282        Determine the image format from the first few bytes of the file. 
    32913283      */ 
    3292       *filename='\0'; 
    3293       status=ImageToFile(image,filename,exception); 
    3294       (void) CloseBlob(image); 
    3295       if (status == MagickFalse) 
    3296         { 
    3297           image=DestroyImage(image); 
    3298           return(MagickFalse); 
    3299         } 
    3300       SetImageInfoFile(image_info,(FILE *) NULL); 
    3301       (void) CopyMagickString(image->filename,filename,MaxTextExtent); 
     3284      image=AcquireImage(image_info); 
     3285      (void) CopyMagickString(image->filename,image_info->filename, 
     3286        MaxTextExtent); 
    33023287      status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); 
    33033288      if (status == MagickFalse) 
     
    33063291          return(MagickFalse); 
    33073292        } 
    3308       (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
    3309       image_info->temporary=MagickTrue; 
    3310     } 
    3311   (void) ResetMagickMemory(magick,0,sizeof(magick)); 
    3312   count=ReadBlob(image,2*MaxTextExtent,magick); 
    3313   (void) CloseBlob(image); 
    3314   image=DestroyImage(image); 
    3315   /* 
    3316     Check magic.xml configuration file. 
    3317   */ 
    3318   sans_exception=AcquireExceptionInfo(); 
    3319   magic_info=GetMagicInfo(magick,(size_t) count,sans_exception); 
    3320   if ((magic_info != (const MagicInfo *) NULL) && 
    3321       (GetMagicName(magic_info) != (char *) NULL)) 
    3322     { 
    3323       (void) CopyMagickString(image_info->magick,GetMagicName(magic_info), 
    3324         MaxTextExtent); 
     3293      if ((IsBlobSeekable(image) == MagickFalse) || 
     3294          (IsBlobExempt(image) != MagickFalse)) 
     3295        { 
     3296          /* 
     3297            Copy standard input or pipe to temporary file. 
     3298          */ 
     3299          *filename='\0'; 
     3300          status=ImageToFile(image,filename,exception); 
     3301          (void) CloseBlob(image); 
     3302          if (status == MagickFalse) 
     3303            { 
     3304              image=DestroyImage(image); 
     3305              return(MagickFalse); 
     3306            } 
     3307          SetImageInfoFile(image_info,(FILE *) NULL); 
     3308          (void) CopyMagickString(image->filename,filename,MaxTextExtent); 
     3309          status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); 
     3310          if (status == MagickFalse) 
     3311            { 
     3312              image=DestroyImage(image); 
     3313              return(MagickFalse); 
     3314            } 
     3315          (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 
     3316          image_info->temporary=MagickTrue; 
     3317        } 
     3318      (void) ResetMagickMemory(magick,0,sizeof(magick)); 
     3319      count=ReadBlob(image,2*MaxTextExtent,magick); 
     3320      (void) CloseBlob(image); 
     3321      image=DestroyImage(image); 
     3322      /* 
     3323        Check magic.xml configuration file. 
     3324      */ 
     3325      sans_exception=AcquireExceptionInfo(); 
     3326      magic_info=GetMagicInfo(magick,(size_t) count,sans_exception); 
     3327      if ((magic_info != (const MagicInfo *) NULL) && 
     3328          (GetMagicName(magic_info) != (char *) NULL)) 
     3329        { 
     3330          (void) CopyMagickString(image_info->magick,GetMagicName(magic_info), 
     3331            MaxTextExtent); 
     3332          magick_info=GetMagickInfo(image_info->magick,sans_exception); 
     3333          if ((magick_info == (const MagickInfo *) NULL) || 
     3334              (GetMagickEndianSupport(magick_info) == MagickFalse)) 
     3335            image_info->endian=UndefinedEndian; 
     3336          sans_exception=DestroyExceptionInfo(sans_exception); 
     3337          return(MagickTrue); 
     3338        } 
    33253339      magick_info=GetMagickInfo(image_info->magick,sans_exception); 
    33263340      if ((magick_info == (const MagickInfo *) NULL) || 
     
    33283342        image_info->endian=UndefinedEndian; 
    33293343      sans_exception=DestroyExceptionInfo(sans_exception); 
    3330       return(MagickTrue); 
    3331     } 
    3332   magick_info=GetMagickInfo(image_info->magick,sans_exception); 
    3333   if ((magick_info == (const MagickInfo *) NULL) || 
    3334       (GetMagickEndianSupport(magick_info) == MagickFalse)) 
    3335     image_info->endian=UndefinedEndian; 
    3336   sans_exception=DestroyExceptionInfo(sans_exception); 
     3344    } 
    33373345  return(MagickTrue); 
    33383346} 
  • ImageMagick/trunk/magick/image.h

    r1329 r1334  
    529529  SetImageClipMask(Image *,const Image *), 
    530530  SetImageExtent(Image *,const unsigned long,const unsigned long), 
    531   SetImageInfo(ImageInfo *,const MagickBooleanType,ExceptionInfo *), 
     531  SetImageInfo(ImageInfo *,const unsigned int,ExceptionInfo *), 
    532532  SetImageMask(Image *,const Image *), 
    533533  SetImageOpacity(Image *,const Quantum), 
  • ImageMagick/trunk/magick/stream.c

    r941 r1334  
    11261126      stream_info->image=image; 
    11271127      write_info=CloneImageInfo(stream_info->image_info); 
    1128       (void) SetImageInfo(write_info,MagickFalse,stream_info->exception); 
     1128      (void) SetImageInfo(write_info,1,stream_info->exception); 
    11291129      if (write_info->extract != (char *) NULL) 
    11301130        (void) ParseAbsoluteGeometry(write_info->extract, 
  • ImageMagick/trunk/magick/token.c

    r1181 r1334  
    345345      (void) CopyMagickString(image_info->filename,pattern,MaxTextExtent); 
    346346      exception=AcquireExceptionInfo(); 
    347       (void) SetImageInfo(image_info,MagickTrue,exception); 
     347      (void) SetImageInfo(image_info,0,exception); 
    348348      exception=DestroyExceptionInfo(exception); 
    349349      if (LocaleCompare(image_info->filename,pattern) != 0) 
  • ImageMagick/trunk/wand/display.c

    r1266 r1334  
    592592              (void) CopyMagickString(image->filename, 
    593593                resource_info.write_filename,MaxTextExtent); 
    594               (void) SetImageInfo(image_info,MagickTrue,&image->exception); 
     594              (void) SetImageInfo(image_info,1,&image->exception); 
    595595              status&=WriteImage(image_info,image); 
    596596              GetImageException(image,exception); 
  • ImageMagick/trunk/wand/mogrify.c

    r1174 r1334  
    49284928            (void) ConcatenateMagickString(image_info->filename,":", 
    49294929              MaxTextExtent); 
    4930             (void) SetImageInfo(image_info,MagickFalse,exception); 
     4930            (void) SetImageInfo(image_info,0,exception); 
    49314931            if (*image_info->magick == '\0') 
    49324932              ThrowMogrifyException(OptionError,"UnrecognizedImageFormat", 
Note: See TracChangeset for help on using the changeset viewer.