Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Dynamically give a name to cfimage

$
0
0

I Have a page that displays a series of available items for the public to purchase. each of these items displays an image of the product. My cfimage code is made to scale-to-fit the stored image. normally the displayed results will all shoe different products and their corps pounding images. When I use the code below all of my different products will show the same image instead of showing the images that are linked to each product via a file path stored in the database. Is there a way to set the "name="myImage" dynamically so that each image will display and scale properly?

 

 

<cfimage source="C:\ColdFusion9\wwwroot\shotthp\#product.proimage#" name="myImage">

<!--- Turn on antialiasing. --->

<cfset ImageSetAntialiasing(myImage)>

<cfset ImageScaleToFit(myImage,182,"","highestPerformance")>


Viewing all articles
Browse latest Browse all 5794

Trending Articles