From 36a7ad8bbbcf1a8cf2a7686ff807fa1445690be2 Mon Sep 17 00:00:00 2001 From: glennrp Date: Thu, 23 Dec 2010 16:26:42 +0000 Subject: [PATCH] Added PNG:exclude-chunk=all PNG:include-chunk=gama to the strip option. --- ChangeLog | 3 +++ wand/mogrify.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7ab319a1c..ace481ff1 100644 --- 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 * Removed the forced interpolation setting in AcquireResampleFilterThreadSet diff --git a/wand/mogrify.c b/wand/mogrify.c index f6a4e8367..6cf179253 100644 --- a/wand/mogrify.c +++ b/wand/mogrify.c @@ -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; } -- 2.40.0