From 89e226084238a1611a572467a330e6e7145059be Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 8 Apr 2015 23:34:13 +0000 Subject: [PATCH] --- coders/psd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/coders/psd.c b/coders/psd.c index 3416aa863..50c1ef9da 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -1809,6 +1809,14 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception) */ SeekBlob(image,offset+length,SEEK_SET); } + /* + If we are only "pinging" the image, then we're done - so return. + */ + if (image_info->ping != MagickFalse) + { + (void) CloseBlob(image); + return(GetFirstImageInList(image)); + } /* Read the precombined layer, present for PSD < 4 compatibility. */ -- 2.40.0