thanks Rick, i will give that a go ~Dave the disruptor~
---------------------------------------- From: Rick Root <[EMAIL PROTECTED]> Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk <[email protected]> Subject: Re: imagecfc ? (rick roots) dave wrote: > I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could > do the resize then flip it and do another resize but is it possible to do it > in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in "one pass"... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject("component","image"); // read image file, resize and return image object img = imagecfc.resizeImage(objImage="", inputFile="C:\Inetpub\wwwroot\foo.jpg", outputFile="", newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile="", outputFile=""); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile="", outputFile="C:\Inetpub\wwwroot\foo2.jpg", newWidth=30, newHeight=30); Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233491 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

