Commit 532b0f5b5 for imagemagick.org

commit 532b0f5b53d1c93b721212f04a3dc342dab0f923
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Mon Jun 22 10:12:28 2026 -0400

    https://github.com/ImageMagick/ImageMagick/issues/8816

diff --git a/coders/png.c b/coders/png.c
index 3dbec1744..4d0dd667c 100644
--- a/coders/png.c
+++ b/coders/png.c
@@ -13065,7 +13065,7 @@ static MagickBooleanType WriteMNGImage(const ImageInfo *image_info,Image *image,
       image_count=0;
       all_images_are_gray=MagickTrue;
       mng_info->equal_palettes=MagickFalse;
-      need_local_plte=MagickFalse;
+      need_local_plte=MagickTrue;
       for (next_image=image; next_image != (Image *) NULL; )
       {
         if (need_geom)