From: Dirk Lemstra Date: Sat, 10 Nov 2018 15:48:57 +0000 (+0100) Subject: Applied patch from Jon Sneyers to fix reading the profile for all layers. X-Git-Tag: 7.0.8-15~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a037126fa86ee647dcfb149bdb734d457eeb4f1;p=imagemagick Applied patch from Jon Sneyers to fix reading the profile for all layers. --- diff --git a/coders/psd.c b/coders/psd.c index 0574252ff..5df18a9cb 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -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);