From: cristy Date: Wed, 8 Apr 2015 23:34:13 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89e226084238a1611a572467a330e6e7145059be;p=imagemagick --- 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. */