From: cristy Date: Thu, 23 Dec 2010 18:10:46 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8362 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b00e1e424a426cce1dc9f8c6e234d75b38f3f2e1;p=imagemagick --- diff --git a/magick/image.c b/magick/image.c index 503fa9dad..669f63c79 100644 --- a/magick/image.c +++ b/magick/image.c @@ -3817,6 +3817,8 @@ MagickExport MagickBooleanType StripImage(Image *image) (void) DeleteImageProperty(image,"comment"); (void) DeleteImageProperty(image,"date:create"); (void) DeleteImageProperty(image,"date:modify"); + (void) SetImageArtifact(image,"png:exclude-chunk","all"); + (void) SetImageArtifact(image,"png:include-chunk","gama"); return(MagickTrue); } diff --git a/wand/mogrify.c b/wand/mogrify.c index 6cf179253..f6a4e8367 100644 --- a/wand/mogrify.c +++ b/wand/mogrify.c @@ -3162,11 +3162,6 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc, */ (void) SyncImageSettings(mogrify_info,*image); (void) StripImage(*image); - - /* In case we are writing a PNG */ - (void) SetImageOption(image_info,"PNG:exclude-chunk","all"); - (void) SetImageOption(image_info,"PNG:include-chunk","gama"); - InheritException(exception,&(*image)->exception); break; }