]> granicus.if.org Git - imagemagick/commitdiff
The -strip option was excluding the PNG tRNS chunk.
authorglennrp <glennrp@git.imagemagick.org>
Sat, 20 Aug 2011 05:08:53 +0000 (05:08 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Sat, 20 Aug 2011 05:08:53 +0000 (05:08 +0000)
MagickCore/image.c
coders/png.c

index 1f8610c2fcdfdc332ca6aedf04aa8ad284bf7ad5..9f183592d28d1d0955782dac97c25daafee55237 100644 (file)
@@ -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);
 }
 \f
index d54ff54e286ad3103d1c5d92b6c8411ac1aecbe0..8b559d824db1c7ede3904f396e36847d37b614aa 100644 (file)
@@ -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;