From 104f206c40efbb0a0eeba846672009345423e969 Mon Sep 17 00:00:00 2001 From: glennrp Date: Sat, 20 Aug 2011 05:08:53 +0000 Subject: [PATCH] The -strip option was excluding the PNG tRNS chunk. --- MagickCore/image.c | 2 +- coders/png.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0