Trying to resize a PNG with the following code and the image linked below
and it's coming out all screwy. Any ideas as to why this is happening? The
image is from a jQuery plugin so I'm not sure how it was created.

Source: http://www.halestorm.co.uk/images/growl-tick.png

Resized: http://www.halestorm.co.uk/images/growl-tick-resized.png

Code:

<cfset img_path = ExpandPath(".\growl-tick.png")>
<cfset img_dest = ExpandPath(".\growl-tick-resized.png")>

<cfset img = ImageRead(img_path)>
<cfset ImageScaleToFit(img, 200, "")>
<cfset ImageWrite(img, img_dest, 1)>
<cfimage action="WRITETOBROWSER" source="#img#">

Anything about PNGs I need to know in regards to resizing them in CF?

Cheers.

Adrian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:320319
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to