%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DefineImageProperty() associates an assignment string of the form
-% "key=value" with per-image artifact. It is equivelent to
-% SetImageProperity().
+% "key=value" with per-image artifact. It is equivelent to SetImageProperty().
%
% The format of the DefineImageProperty method is:
%
-% MagickBooleanType DefineImageProperty(Image *image,
-% const char *property,ExceptionInfo *exception)
+% MagickBooleanType DefineImageProperty(Image *image,const char *property,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
#define LSBFirstOrder(x,y) (((y) << 8) | (x))
Image
- *image;
+ *image,
+ *meta_image;
int
number_extensionss=0;
iterations=1;
opacity=(-1);
image_count=0;
+ meta_image=AcquireImage(image_info,exception); /* metadata container */
for ( ; ; )
{
count=ReadBlob(image,1,&c);
header[count]='\0';
(void) ConcatenateString(&comments,(const char *) header);
}
- (void) SetImageProperty(image,"comment",comments,exception);
+ (void) SetImageProperty(meta_image,"comment",comments,exception);
comments=DestroyString(comments);
break;
}
header);
info=(unsigned char *) RelinquishMagickMemory(info);
if (magick == MagickFalse)
- (void) SetImageProfile(image,name,profile,exception);
+ (void) SetImageProfile(meta_image,name,profile,exception);
profile=DestroyStringInfo(profile);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" profile name=%s",name);
global_colormap);
ThrowReaderException(CorruptImageError,"NegativeOrZeroImageSize");
}
+ CloneImageProperties(image,meta_image);
+ DestroyImageProperties(meta_image);
+ CloneImageProfiles(image,meta_image);
+ DestroyImageProfiles(meta_image);
/*
Inititialize colormap.
*/
if (status == MagickFalse)
break;
}
+ meta_image=DestroyImage(meta_image);
global_colormap=(unsigned char *) RelinquishMagickMemory(global_colormap);
if ((image->columns == 0) || (image->rows == 0))
ThrowReaderException(CorruptImageError,"NegativeOrZeroImageSize");