]> granicus.if.org Git - imagemagick/commitdiff
Applied patch from Jon Sneyers to fix reading the profile for all layers.
authorDirk Lemstra <dirk@lemstra.org>
Sat, 10 Nov 2018 15:48:57 +0000 (16:48 +0100)
committerDirk Lemstra <dirk@lemstra.org>
Sat, 10 Nov 2018 15:48:57 +0000 (16:48 +0100)
coders/psd.c

index 0574252ffc60536619674e56cb68a7010cce40f1..5df18a9cb6a2c643da51a8f3f14605c8d9b4a62e 100644 (file)
@@ -2378,8 +2378,16 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
     }
   if (profile != (StringInfo *) NULL)
     {
-      (void) SetImageProfile(image,GetStringInfoName(profile),profile,
-        exception);
+      Image
+        *next;
+
+      next=image;
+      while (next != (Image *) NULL)
+      {
+        (void) SetImageProfile(next,GetStringInfoName(profile),profile,
+          exception);
+        next=next->next;
+      }
       profile=DestroyStringInfo(profile);
     }
   (void) CloseBlob(image);