File ImageMagick-convert-tiff-resize-png.patch of Package ImageMagick.19143

diff --git a/coders/png.c b/coders/png.c
index 151e3cb07..2c319f3b6 100644
--- a/coders/png.c
+++ b/coders/png.c
@@ -8512,6 +8512,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
     Sometimes we get PseudoClass images whose RGB values don't match
     the colors in the colormap.  This code syncs the RGB values.
   */
+  image->depth=GetImageQuantumDepth(image,MagickFalse);
   if (image->depth <= 8 && image->taint && image->storage_class == PseudoClass)
      (void) SyncImage(image);
 

openSUSE Build Service is sponsored by