LyndonOHRC
Programmer
Hi, just trying some of the new stuff in CF 8 and hit a wall right away.
I'm trying to resize an image, goal is to have a max size for member photos. Not trying to do much fancy.
I followed the advice in this article on scaling an image:
When I run the cfimage resize tag, commented out in the code below, it works fine. Please Help!
I'm getting the following error:
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
I'm trying to resize an image, goal is to have a max size for member photos. Not trying to do much fancy.
I followed the advice in this article on scaling an image:
When I run the cfimage resize tag, commented out in the code below, it works fine. Please Help!
Code:
<cfimage name="memberPhoto" source="Graphics\#GetMember.Photo#">
<.cfscript>
ImageSetAntialiasing(memberPhoto,"on");
[COLOR=red]ImageScaleToFit[/color](memberPhoto,”800”,”800”"bicubic");
</.cfscript>
<!--- <cfimage action="resize"
height="50%"
width="50%"
source="#memberPhoto#"
destination="Graphics\#GetMember.Photo#"
overwrite="true"/> --->
<cfimage action="write"
source="#mainImage#"
destination="Graphics\#GetMember.Photo#"
overwrite="true" />
<img border="0" src="Graphics\#GetMember.Photo#" >
I'm getting the following error:
Code:
Missing argument name.
When using named parameters to a function, every parameter must have a name.
The CFML compiler was processing:
An expression beginning with ImageScaleToFit, on line 75, column 65.This message is usually caused by a problem in the expressions structure.
A script statement beginning with [COLOR=red]ImageScaleToFit[/color] on line 75, column 65.
A cfscript tag beginning on line 73, column 58.
A cfscript tag beginning on line 73, column 58.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey