oops... don't know me own code! ;)

Jim Wright wrote:
> That's probably because there is no resizeImage method...it is just resize...
> <cfscript>
> imageCFC = createObject("component","image");
> img = imagecfc.resize(objImage="",inputFile="C:\Inetpub\wwwroot\foo.jpg",
> outputFile="", newWidth=51,newHeight=41);
> </cfscript>
> 
> On 2/26/06, dave <[EMAIL PROTECTED]> wrote:
>> that gives me error
>>
>> It "looks" like this would be all I need
>>  img = imagecfc.resizeImage(objImage="",
>> inputFile="C:\Inetpub\wwwroot\foo.jpg", outputFile="", newWidth=51,
>> newHeight=41)
>>
>> but that gives an error for the = between newheight, etc...
>>
>> ~Dave the disruptor~
>>
>> ----------------------------------------
>> From: Rick Root <[EMAIL PROTECTED]>
>> Sent: Sunday, February 26, 2006 12:20 AM
>> To: CF-Talk <cf-talk@houseoffusion.com>
>> 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:233500
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