Commit c062b1d01 for imagemagick.org

commit c062b1d0149514855b71571f9722c10fd610d4e0
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Fri Apr 10 21:59:55 2026 +0200

    Meta channels are not support when the image has a colormap.

diff --git a/coders/psd.c b/coders/psd.c
index d18226675..baef9f13e 100644
--- a/coders/psd.c
+++ b/coders/psd.c
@@ -1579,6 +1579,8 @@ static MagickBooleanType SetPSDMetaChannels(Image *image,const PSDInfo *psd_info
   ssize_t
     number_meta_channels;

+  if (image->storage_class == PseudoClass)
+    return(MagickFalse);
   number_meta_channels=(ssize_t) channels-psd_info->min_channels;
   if ((image->alpha_trait & BlendPixelTrait) != 0)
     number_meta_channels--;