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)

<cfscript>
// 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);
</cfscript>

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233488
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to