]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Apr 2015 23:34:13 +0000 (23:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Apr 2015 23:34:13 +0000 (23:34 +0000)
coders/psd.c

index 3416aa863ccbefe9928b90b883425924bde70d8c..50c1ef9da51380b16f9104b070330d2a826c9429 100644 (file)
@@ -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.
   */