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

Re: ImageScaletoFit Issue

$
0
0

According to Adobe CF docs, resizing an image is done as:

 

<cfimage     required     action = "resize"     height = "number of pixels|percent%"     source = "absolute pathname|pathname relative to the web root|URL|#cfimage variable#"     width = "number of pixels|percent%"     optional     destination = "absolute pathname|pathname relative to the web root"     isBase64 = "yes|no"     name = "cfimage variable"     overwrite = "yes|no"> 

 

Then, writing it to the browser is like:

 

<cfimage action="writetobrowser" source="#image name from first cfimage tag#" format="gif" id="yourID" />

 

^_^



 

UPDATE: I just noticed ImageScaleToFit.  Sorry. Place the following between the first two tags I wrote:

 

<cfset ImageScaleToFit(image name from first cfimage tag,options)>

 

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461 172e0811cbec22c24-7975.html


Viewing all articles
Browse latest Browse all 21760

Trending Articles



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