]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 14 May 2010 16:18:26 +0000 (16:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 14 May 2010 16:18:26 +0000 (16:18 +0000)
coders/psd.c

index 7ed2a9894f9cfcc354016b913e9cd4a2937e5131..838ac4f178045a0ca9a8073305314ce5c330da85 100644 (file)
@@ -436,6 +436,9 @@ static MagickBooleanType ParseImageResourceBlocks(Image *image,
     {
       case 0x03ed:
       {
+        char
+          value[MaxTextExtent];
+
         unsigned short
           resolution;
 
@@ -444,11 +447,15 @@ static MagickBooleanType ParseImageResourceBlocks(Image *image,
         */
         p=PushShortPixel(MSBEndian,p,&resolution);
         image->x_resolution=(double) resolution;
+        (void) FormatMagickString(value,MaxTextExtent,"%g",image->x_resolution);
+        (void) SetImageProperty(image,"tiff:XResolution",value);
         p=PushShortPixel(MSBEndian,p,&short_sans);
         p=PushShortPixel(MSBEndian,p,&short_sans);
         p=PushShortPixel(MSBEndian,p,&short_sans);
         p=PushShortPixel(MSBEndian,p,&resolution);
         image->y_resolution=(double) resolution;
+        (void) FormatMagickString(value,MaxTextExtent,"%g",image->y_resolution);
+        (void) SetImageProperty(image,"tiff:YResolution",value);
         p=PushShortPixel(MSBEndian,p,&short_sans);
         p=PushShortPixel(MSBEndian,p,&short_sans);
         p=PushShortPixel(MSBEndian,p,&short_sans);