From 00d3d87abee81d5dd58823905047eb992ed1d50b Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 8 Aug 2013 14:25:39 +0000 Subject: [PATCH] --- coders/psd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/coders/psd.c b/coders/psd.c index ebefd990c..3cd841a54 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -927,6 +927,14 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception) exception); blocks=(unsigned char *) RelinquishMagickMemory(blocks); } + /* + If we are only "pinging" the image, then we're done - so return. + */ + if (image_info->ping != MagickFalse) + { + (void) CloseBlob(image); + return(GetFirstImageInList(image)); + } /* Layer and mask block. */ -- 2.40.0