Changeset 1334
- Timestamp:
- 03/03/10 12:47:35 (3 years ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 19 edited
-
Magick++/lib/Options.cpp (modified) (1 diff)
-
PerlMagick/Magick.xs (modified) (5 diffs)
-
coders/clip.c (modified) (1 diff)
-
coders/histogram.c (modified) (1 diff)
-
coders/preview.c (modified) (1 diff)
-
coders/thumbnail.c (modified) (1 diff)
-
coders/vid.c (modified) (1 diff)
-
coders/xtrn.c (modified) (3 diffs)
-
magick/animate.c (modified) (1 diff)
-
magick/blob.c (modified) (3 diffs)
-
magick/constitute.c (modified) (7 diffs)
-
magick/delegate.c (modified) (1 diff)
-
magick/display.c (modified) (2 diffs)
-
magick/image.c (modified) (6 diffs)
-
magick/image.h (modified) (1 diff)
-
magick/stream.c (modified) (1 diff)
-
magick/token.c (modified) (1 diff)
-
wand/display.c (modified) (1 diff)
-
wand/mogrify.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/Magick++/lib/Options.cpp
r747 r1334 360 360 FormatMagickString( _imageInfo->filename, MaxTextExtent, "%.1024s:", magick_.c_str() ); 361 361 GetExceptionInfo(&exception); 362 SetImageInfo( _imageInfo, MagickTrue, &exception);362 SetImageInfo( _imageInfo, 1, &exception); 363 363 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() ); 367 366 (void) DestroyExceptionInfo( &exception ); 368 367 } -
ImageMagick/trunk/PerlMagick/Magick.xs
r1143 r1334 2656 2656 (void) CopyMagickString(image->filename,info->image_info->filename, 2657 2657 MaxTextExtent); 2658 SetImageInfo(info->image_info, MagickFalse,exception);2658 SetImageInfo(info->image_info,0,exception); 2659 2659 exception=DestroyExceptionInfo(exception); 2660 2660 SvREFCNT_dec(perl_exception); … … 3821 3821 (void) CopyMagickString(image->filename,info->image_info->filename, 3822 3822 MaxTextExtent); 3823 SetImageInfo(info->image_info, MagickFalse,exception);3823 SetImageInfo(info->image_info,0,exception); 3824 3824 exception=DestroyExceptionInfo(exception); 3825 3825 SvREFCNT_dec(perl_exception); … … 6370 6370 next->scene=scene++; 6371 6371 } 6372 SetImageInfo(package_info->image_info,MagickTrue,&image->exception); 6372 SetImageInfo(package_info->image_info,(unsigned int) 6373 GetImageListLength(image),&image->exception); 6373 6374 EXTEND(sp,(long) GetImageListLength(image)); 6374 6375 for ( ; image; image=image->next) … … 10975 10976 (void) CopyMagickString(image->filename,info->image_info->filename, 10976 10977 MaxTextExtent); 10977 SetImageInfo(info->image_info, MagickFalse,&image->exception);10978 SetImageInfo(info->image_info,0,&image->exception); 10978 10979 exception=DestroyExceptionInfo(exception); 10979 10980 SvREFCNT_dec(perl_exception); … … 13498 13499 next->scene=scene++; 13499 13500 } 13500 SetImageInfo(package_info->image_info,MagickTrue,&image->exception); 13501 SetImageInfo(package_info->image_info,(unsigned int) 13502 GetImageListLength(image),&image->exception); 13501 13503 for (next=image; next; next=next->next) 13502 13504 { -
ImageMagick/trunk/coders/clip.c
r769 r1334 169 169 (void) CopyMagickString(clip_image->filename,image->filename,MaxTextExtent); 170 170 write_info=CloneImageInfo(image_info); 171 (void) SetImageInfo(write_info, MagickTrue,&image->exception);171 (void) SetImageInfo(write_info,1,&image->exception); 172 172 if (LocaleCompare(write_info->magick,"CLIP") == 0) 173 173 (void) FormatMagickString(clip_image->filename,MaxTextExtent,"miff:%s", -
ImageMagick/trunk/coders/histogram.c
r918 r1334 372 372 MaxTextExtent); 373 373 write_info=CloneImageInfo(image_info); 374 (void) SetImageInfo(write_info, MagickTrue,&image->exception);374 (void) SetImageInfo(write_info,1,&image->exception); 375 375 if (LocaleCompare(write_info->magick,"HISTOGRAM") == 0) 376 376 (void) FormatMagickString(histogram_image->filename,MaxTextExtent, -
ImageMagick/trunk/coders/preview.c
r769 r1334 188 188 MaxTextExtent); 189 189 write_info=CloneImageInfo(image_info); 190 (void) SetImageInfo(write_info, MagickTrue,&image->exception);190 (void) SetImageInfo(write_info,1,&image->exception); 191 191 if (LocaleCompare(write_info->magick,"PREVIEW") == 0) 192 192 (void) FormatMagickString(preview_image->filename,MaxTextExtent, -
ImageMagick/trunk/coders/thumbnail.c
r784 r1334 208 208 MaxTextExtent); 209 209 write_info=CloneImageInfo(image_info); 210 (void) SetImageInfo(write_info, MagickTrue,&image->exception);210 (void) SetImageInfo(write_info,1,&image->exception); 211 211 if (LocaleCompare(write_info->magick,"THUMBNAIL") == 0) 212 212 (void) FormatMagickString(thumbnail_image->filename,MaxTextExtent, -
ImageMagick/trunk/coders/vid.c
r772 r1334 330 330 MaxTextExtent); 331 331 write_info=CloneImageInfo(image_info); 332 (void) SetImageInfo(write_info, MagickTrue,&image->exception);332 (void) SetImageInfo(write_info,1,&image->exception); 333 333 if (LocaleCompare(write_info->magick,"VID") == 0) 334 334 (void) FormatMagickString(montage_image->filename,MaxTextExtent, -
ImageMagick/trunk/coders/xtrn.c
r1 r1334 556 556 p->scene=scene++; 557 557 } 558 SetImageInfo(clone_info, MagickTrue,&image->exception);558 SetImageInfo(clone_info,1,&image->exception); 559 559 (void) CopyMagickString(image->magick,clone_info->magick, 560 560 MaxTextExtent); … … 595 595 p->scene=scene++; 596 596 } 597 SetImageInfo(clone_info, MagickTrue,&image->exception);597 SetImageInfo(clone_info,1,&image->exception); 598 598 (void) CopyMagickString(image->magick,clone_info->magick, 599 599 MaxTextExtent); … … 624 624 p->scene=scene++; 625 625 } 626 SetImageInfo(clone_info, MagickTrue,&image->exception);626 SetImageInfo(clone_info,1,&image->exception); 627 627 (void) CopyMagickString(image->magick,clone_info->magick, 628 628 MaxTextExtent); -
ImageMagick/trunk/magick/animate.c
r1166 r1334 2932 2932 image_info=CloneImageInfo(resource_info->image_info); 2933 2933 (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 2934 (void) SetImageInfo(image_info, MagickFalse,&image->exception);2934 (void) SetImageInfo(image_info,1,&image->exception); 2935 2935 if ((LocaleCompare(image_info->magick,"JPEG") == 0) || 2936 2936 (LocaleCompare(image_info->magick,"JPG") == 0)) -
ImageMagick/trunk/magick/blob.c
r1314 r1334 341 341 blob_info->length=length; 342 342 if (*blob_info->magick == '\0') 343 (void) SetImageInfo(blob_info, MagickFalse,exception);343 (void) SetImageInfo(blob_info,0,exception); 344 344 magick_info=GetMagickInfo(blob_info->magick,exception); 345 345 if (magick_info == (const MagickInfo *) NULL) … … 1363 1363 blob_info=CloneImageInfo(image_info); 1364 1364 blob_info->adjoin=MagickFalse; 1365 (void) SetImageInfo(blob_info, MagickTrue,exception);1365 (void) SetImageInfo(blob_info,1,exception); 1366 1366 if (*blob_info->magick != '\0') 1367 1367 (void) CopyMagickString(image->magick,blob_info->magick,MaxTextExtent); … … 1640 1640 blob=(unsigned char *) NULL; 1641 1641 blob_info=CloneImageInfo(image_info); 1642 (void) SetImageInfo(blob_info,MagickTrue,exception); 1642 (void) SetImageInfo(blob_info,(unsigned int) GetImageListLength(images), 1643 exception); 1643 1644 if (*blob_info->magick != '\0') 1644 1645 (void) CopyMagickString(images->magick,blob_info->magick,MaxTextExtent); -
ImageMagick/trunk/magick/constitute.c
r1297 r1334 343 343 read_info=CloneImageInfo(image_info); 344 344 sans=AcquireExceptionInfo(); 345 (void) SetImageInfo(read_info, MagickFalse,sans);345 (void) SetImageInfo(read_info,0,sans); 346 346 sans=DestroyExceptionInfo(sans); 347 347 (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); … … 443 443 read_info=CloneImageInfo(image_info); 444 444 (void) CopyMagickString(magick_filename,read_info->filename,MaxTextExtent); 445 (void) SetImageInfo(read_info, MagickFalse,exception);445 (void) SetImageInfo(read_info,0,exception); 446 446 (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); 447 447 (void) CopyMagickString(magick,read_info->magick,MaxTextExtent); … … 559 559 image=DestroyImageList(image); 560 560 read_info->temporary=MagickTrue; 561 (void) SetImageInfo(read_info, MagickFalse,exception);561 (void) SetImageInfo(read_info,0,exception); 562 562 magick_info=GetMagickInfo(read_info->magick,exception); 563 563 if ((magick_info == (const MagickInfo *) NULL) || … … 849 849 read_info=CloneImageInfo(image_info); 850 850 sans=AcquireExceptionInfo(); 851 (void) SetImageInfo(read_info, MagickFalse,sans);851 (void) SetImageInfo(read_info,0,sans); 852 852 sans=DestroyExceptionInfo(sans); 853 853 (void) CopyMagickString(filename,read_info->filename,MaxTextExtent); … … 1012 1012 if (*write_info->magick == '\0') 1013 1013 (void) CopyMagickString(write_info->magick,image->magick,MaxTextExtent); 1014 (void) SetImageInfo(write_info, MagickTrue,sans_exception);1014 (void) SetImageInfo(write_info,1,sans_exception); 1015 1015 if (LocaleCompare(write_info->magick,"clipmask") == 0) 1016 1016 { … … 1022 1022 } 1023 1023 image=image->clip_mask; 1024 (void) SetImageInfo(write_info, MagickTrue,sans_exception);1024 (void) SetImageInfo(write_info,1,sans_exception); 1025 1025 } 1026 1026 (void) CopyMagickString(filename,image->filename,MaxTextExtent); … … 1271 1271 (void) CopyMagickString(write_info->magick,images->magick,MaxTextExtent); 1272 1272 sans_exception=AcquireExceptionInfo(); 1273 (void) SetImageInfo(write_info,MagickTrue,sans_exception); 1273 (void) SetImageInfo(write_info,(unsigned int) GetImageListLength(images), 1274 sans_exception); 1274 1275 sans_exception=DestroyExceptionInfo(sans_exception); 1275 1276 p=images; -
ImageMagick/trunk/magick/delegate.c
r1228 r1334 959 959 (void) FormatMagickString(clone_info->filename,MaxTextExtent,"%s:", 960 960 delegate_info->decode); 961 (void) SetImageInfo(clone_info,MagickTrue,exception); 961 (void) SetImageInfo(clone_info,(unsigned int) GetImageListLength(image), 962 exception); 962 963 (void) CopyMagickString(clone_info->filename,image_info->filename, 963 964 MaxTextExtent); -
ImageMagick/trunk/magick/display.c
r1166 r1334 10151 10151 (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 10152 10152 exception=AcquireExceptionInfo(); 10153 (void) SetImageInfo(image_info, MagickFalse,exception);10153 (void) SetImageInfo(image_info,0,exception); 10154 10154 if (LocaleCompare(image_info->magick,"X") == 0) 10155 10155 { … … 12381 12381 image_info=CloneImageInfo(resource_info->image_info); 12382 12382 (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 12383 (void) SetImageInfo(image_info, MagickFalse,&image->exception);12383 (void) SetImageInfo(image_info,1,&image->exception); 12384 12384 if ((LocaleCompare(image_info->magick,"JPEG") == 0) || 12385 12385 (LocaleCompare(image_info->magick,"JPG") == 0)) -
ImageMagick/trunk/magick/image.c
r1329 r1334 3029 3029 % 3030 3030 % 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. 3040 3038 % 3041 3039 % o exception: return any errors or warnings in this structure. … … 3043 3041 */ 3044 3042 MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info, 3045 const MagickBooleanType rectify,ExceptionInfo *exception)3043 const unsigned int frames,ExceptionInfo *exception) 3046 3044 { 3047 3045 char … … 3085 3083 image_info->filename); 3086 3084 *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') 3094 3089 { 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 } 3129 3131 } 3130 3132 } … … 3252 3254 GetPathComponent(image_info->filename,CanonicalPath,filename); 3253 3255 (void) CopyMagickString(image_info->filename,filename,MaxTextExtent); 3254 if ( rectify != MagickFalse)3256 if ((image_info->adjoin != MagickFalse) && (frames > 1)) 3255 3257 { 3256 3258 /* 3257 Rectify multi-image file support.3259 Test for multiple image support (e.g. image%02d.png). 3258 3260 */ 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 */ 3267 3272 magick_info=GetMagickInfo(magic,exception); 3268 3273 if (magick_info != (const MagickInfo *) NULL) 3269 3274 if (GetMagickAdjoin(magick_info) == MagickFalse) 3270 3275 image_info->adjoin=MagickFalse; 3271 return(MagickTrue);3272 3276 } 3273 3277 if (image_info->affirm != MagickFalse) 3274 3278 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) 3288 3280 { 3289 3281 /* 3290 Copy standard input or pipe to temporaryfile.3282 Determine the image format from the first few bytes of the file. 3291 3283 */ 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); 3302 3287 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); 3303 3288 if (status == MagickFalse) … … 3306 3291 return(MagickFalse); 3307 3292 } 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 } 3325 3339 magick_info=GetMagickInfo(image_info->magick,sans_exception); 3326 3340 if ((magick_info == (const MagickInfo *) NULL) || … … 3328 3342 image_info->endian=UndefinedEndian; 3329 3343 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 } 3337 3345 return(MagickTrue); 3338 3346 } -
ImageMagick/trunk/magick/image.h
r1329 r1334 529 529 SetImageClipMask(Image *,const Image *), 530 530 SetImageExtent(Image *,const unsigned long,const unsigned long), 531 SetImageInfo(ImageInfo *,const MagickBooleanType,ExceptionInfo *),531 SetImageInfo(ImageInfo *,const unsigned int,ExceptionInfo *), 532 532 SetImageMask(Image *,const Image *), 533 533 SetImageOpacity(Image *,const Quantum), -
ImageMagick/trunk/magick/stream.c
r941 r1334 1126 1126 stream_info->image=image; 1127 1127 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); 1129 1129 if (write_info->extract != (char *) NULL) 1130 1130 (void) ParseAbsoluteGeometry(write_info->extract, -
ImageMagick/trunk/magick/token.c
r1181 r1334 345 345 (void) CopyMagickString(image_info->filename,pattern,MaxTextExtent); 346 346 exception=AcquireExceptionInfo(); 347 (void) SetImageInfo(image_info, MagickTrue,exception);347 (void) SetImageInfo(image_info,0,exception); 348 348 exception=DestroyExceptionInfo(exception); 349 349 if (LocaleCompare(image_info->filename,pattern) != 0) -
ImageMagick/trunk/wand/display.c
r1266 r1334 592 592 (void) CopyMagickString(image->filename, 593 593 resource_info.write_filename,MaxTextExtent); 594 (void) SetImageInfo(image_info, MagickTrue,&image->exception);594 (void) SetImageInfo(image_info,1,&image->exception); 595 595 status&=WriteImage(image_info,image); 596 596 GetImageException(image,exception); -
ImageMagick/trunk/wand/mogrify.c
r1174 r1334 4928 4928 (void) ConcatenateMagickString(image_info->filename,":", 4929 4929 MaxTextExtent); 4930 (void) SetImageInfo(image_info, MagickFalse,exception);4930 (void) SetImageInfo(image_info,0,exception); 4931 4931 if (*image_info->magick == '\0') 4932 4932 ThrowMogrifyException(OptionError,"UnrecognizedImageFormat",
Note: See TracChangeset
for help on using the changeset viewer.
