From: cristy Date: Wed, 27 Jun 2012 01:01:10 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b2b4e597c88e16b950b56716ce26de00b82c64d;p=imagemagick --- diff --git a/coders/msl.c b/coders/msl.c index d354e715e..c84315458 100644 --- a/coders/msl.c +++ b/coders/msl.c @@ -4361,7 +4361,7 @@ static void MSLStartElement(void *context,const xmlChar *tag, msl_info->attributes[n],(const char *) attributes[i], &exception); CloneString(&value,attribute); - if (*keyword == '+') + if (*keyword == '!') { /* Remove a profile from the image. @@ -6876,6 +6876,33 @@ static void MSLStartElement(void *context,const xmlChar *tag, } else ThrowMSLException(OptionError,"Missing stereo image",keyword); } + if (LocaleCompare((const char *) tag,"strip") == 0) + { + Image + *magnify_image; + + /* + Magnify image. + */ + if (msl_info->image[n] == (Image *) NULL) + { + ThrowMSLException(OptionError,"NoImagesDefined", + (const char *) tag); + break; + } + if (attributes != (const xmlChar **) NULL) + for (i=0; (attributes[i] != (const xmlChar *) NULL); i++) + { + keyword=(const char *) attributes[i++]; + attribute=InterpretImageProperties(msl_info->image_info[n], + msl_info->attributes[n],(const char *) attributes[i], + &exception); + CloneString(&value,attribute); + ThrowMSLException(OptionError,"UnrecognizedAttribute",keyword); + } + (void) StripImage(msl_info->image[n],msl_info->exception); + break; + } if (LocaleCompare((const char *) tag,"swap") == 0) { Image @@ -7647,8 +7674,8 @@ static void MSLExternalSubset(void *context,const xmlChar *name, } #endif -static MagickBooleanType ProcessMSLScript(const ImageInfo *image_info,Image **image, - ExceptionInfo *exception) +static MagickBooleanType ProcessMSLScript(const ImageInfo *image_info, + Image **image,ExceptionInfo *exception) { char message[MaxTextExtent];