From 1e4a80b77c1443fc8d04ed0e1abd9942598533de Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 14 May 2010 16:18:26 +0000 Subject: [PATCH] --- coders/psd.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.40.0