]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 8 Aug 2013 14:25:39 +0000 (14:25 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 8 Aug 2013 14:25:39 +0000 (14:25 +0000)
coders/psd.c

index ebefd990c4b5fc154df8566cc8ce38117776eb3a..3cd841a54b780e5d07ec856520a9d4460140be6d 100644 (file)
@@ -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.
   */