From: cristy Date: Fri, 14 May 2010 16:18:26 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e4a80b77c1443fc8d04ed0e1abd9942598533de;p=imagemagick --- diff --git a/coders/psd.c b/coders/psd.c index 7ed2a9894..838ac4f17 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -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);