Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

ImageScaletoFit Issue

$
0
0

<tr><cfoutput query="myDirectory" maxrows="1">

<td align="center"><a href="#Name#">

<cfimage source="#Name#" name="Name1">

<cfset ImageScaleToFit(Name,200,"")><!---  ---><img src="#Name#" /><br />#Name#</a></td>

<cfif myDirectory.currentRow MOD 3 EQ 0>

</tr>

<tr>

</cfif></cfoutput>

Whenever I try the code above I get the following error "

Unable to cast an object of type java.lang.String to Image.

 

"

 

How can I use this tag and resize images that are stored in the variable Name and get them to display correctly?  HELP!


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>