]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 7 Apr 2010 19:52:52 +0000 (19:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 7 Apr 2010 19:52:52 +0000 (19:52 +0000)
coders/psd.c

index 1338be2ed3728ede4ff423edddac4abb721791db..24baab042c776d25541c3b760d750c06af94ed39 100644 (file)
@@ -1995,6 +1995,7 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image)
   if (icc_profile != (StringInfo *) NULL)
     length+=PSDQuantum(GetStringInfoLength(icc_profile))+12;
   (void) WriteBlobMSBLong(image,length);
+  WriteResolutionResourceBlock(image);
   if (bim_profile != (StringInfo *) NULL)
     (void) WriteBlob(image,GetStringInfoLength(bim_profile),GetStringInfoDatum(
       bim_profile));
@@ -2009,7 +2010,6 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image)
       if (length != GetStringInfoLength(icc_profile))
         (void) WriteBlobByte(image,0);
     }
-  WriteResolutionResourceBlock(image);
 
 compute_layer_info:
   layer_count = 0;