Is that a definite solution or is it because the extra .1 happens to push
the height over .5 and so it rounds up maybe?

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-----
From: Azadi Saryev
Sent: 07 November 2008 11:04
To: cf-talk
Subject: Re: CF8 image resize makes picture too small??

yes, it is a known issue. the workaround that worked for me is setting
the width/height .1 pixel larger than needed:

<cfimage action="resize" source="#mySource#" width="160.1" height=""
name="oImage">

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Michael Christensen wrote:
> I have a jpg, width = 968px, height = 648px.
>
> I run the following command;
> <cfimage action="resize" source="#mySource#" width="160" height=""
name="oImage">
>
> and immediately after that;
>
> <cfset this.nImageWidth = ImageGetWidth(oImage)>
> <cfset this.nImageHeight = ImageGetHeight(oImage)>
>
> To my shock and horror, the width returned is 159 instead of the asked
160!?!
>
> Has anyone else experienced this and is there a work-around?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314931
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to