From: glennrp Date: Sat, 20 Aug 2011 05:08:53 +0000 (+0000) Subject: The -strip option was excluding the PNG tRNS chunk. X-Git-Tag: 7.0.1-0~7173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=104f206c40efbb0a0eeba846672009345423e969;p=imagemagick The -strip option was excluding the PNG tRNS chunk. --- diff --git a/MagickCore/image.c b/MagickCore/image.c index 1f8610c2f..9f183592d 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -4059,7 +4059,7 @@ MagickExport MagickBooleanType StripImage(Image *image) (void) DeleteImageProperty(image,"comment"); (void) DeleteImageProperty(image,"date:create"); (void) DeleteImageProperty(image,"date:modify"); - (void) SetImageArtifact(image,"png:include-chunk","none,gama"); + (void) SetImageArtifact(image,"png:include-chunk","none,trns,gama"); return(MagickTrue); } diff --git a/coders/png.c b/coders/png.c index d54ff54e2..8b559d824 100644 --- a/coders/png.c +++ b/coders/png.c @@ -11005,7 +11005,7 @@ static MagickBooleanType WritePNGImage(const ImageInfo *image_info, * is forced to be 4 or 6 (GRAY_ALPHA or RGB_ALPHA). * * The -strip option causes StripImage() to set the png:include-chunk - * artifact to "none,gama". + * artifact to "none,trns,gama". */ mng_info->ping_exclude_bKGD=MagickFalse;