]> granicus.if.org Git - imagemagick/commitdiff
Added PNG:exclude-chunk=all PNG:include-chunk=gama to the strip option.
authorglennrp <glennrp@git.imagemagick.org>
Thu, 23 Dec 2010 16:26:42 +0000 (16:26 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 23 Dec 2010 16:26:42 +0000 (16:26 +0000)
ChangeLog
wand/mogrify.c

index 7ab319a1c6e73571216c38afdccb2ec2bb7519bc..ace481ff18bd0a97cf1812f57d5ec842f9ab0eae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
     can still be used later on without being affected by changes made by
     the PNG encoder.
   * Added PNG:exclude-chunk and PNG:include-chunk defines.
+  * Revised the -strip option so it behaves as though
+    "-define PNG:exclude-chunk=all -define PNG:include-chunk=gama"
+    had appeared on the commandline.
 
 2010-12-21  6.6.6-7 Anthony Thyssen <A.Thyssen@griffith...>
   * Removed the forced interpolation setting in AcquireResampleFilterThreadSet
index f6a4e8367510f6e3e92e619328edc5dd8fba11a7..6cf179253c3c492ec92bcb88f601a92032063605 100644 (file)
@@ -3162,6 +3162,11 @@ 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;
           }