From ff283c80ec94a704b2efdb05e82fe7c1463c536e Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 26 Dec 2017 19:48:23 +0100 Subject: [PATCH] Fixed incorrect size for PSB image. --- coders/psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/psd.c b/coders/psd.c index 94b38fd0d..b63144d3b 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -3539,7 +3539,7 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info, status=WritePSDLayersInternal(image,image_info,&psd_info,&size, exception); size_offset+=WritePSDSize(&psd_info,image,size+ - (psd_info.version == 1 ? 8 : 16),size_offset); + (psd_info.version == 1 ? 8 : 12),size_offset); } (void) WriteBlobMSBLong(image,0); /* user mask data */ /* -- 2.40.0