]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 12 Oct 2010 18:55:20 +0000 (18:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 12 Oct 2010 18:55:20 +0000 (18:55 +0000)
coders/psd.c

index 496992ba5b26b7893c31e288e53a99540980a0b5..4037ffa68d1bd8f1cadc2061397f3bf348cbb49e 100644 (file)
@@ -912,14 +912,6 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (void) ParseImageResourceBlocks(image,blocks,(size_t) length);
       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.
   */
@@ -1185,7 +1177,8 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
             if (image->debug != MagickFalse)
               (void) LogMagickEvent(CoderEvent,GetMagickModule(),
                 "    setting up new layer image");
-            (void) SetImageBackgroundColor(layer_info[i].image);
+            if (image_info->ping != MagickFalse)
+              (void) SetImageBackgroundColor(layer_info[i].image);
             layer_info[i].image->compose=
               PSDBlendModeToCompositeOperator(layer_info[i].blendkey);
             if (layer_info[i].visible == MagickFalse)