]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 23 Dec 2010 18:10:46 +0000 (18:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 23 Dec 2010 18:10:46 +0000 (18:10 +0000)
magick/image.c
wand/mogrify.c

index 503fa9dadaae866864953ce3bdf433532efc477d..669f63c79d06c759b1ca0693eab268096d1347b4 100644 (file)
@@ -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);
 }
 \f
index 6cf179253c3c492ec92bcb88f601a92032063605..f6a4e8367510f6e3e92e619328edc5dd8fba11a7 100644 (file)
@@ -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;
           }