ColdFusion - How to resize image height width programmatically

cfimage - change image height width programmatically


<!DOCTYPE html>
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfimage action resize: how to change image height width programmatically</title>

<h2 style="color:SeaGreen; font-style:italic">cfimage tag example: how to resize image</h2>
<hr width="525" align="left" color="DarkSeaGreen" />
<br />

<cfimage source="Images/Dog3.jpg" action="resize" name="ResizedImage" height="150" width="200">

<table border="1" cellpadding="5" cellspacing="0" bordercolor="DarkSeaGreen">
    <tr bgcolor="SeaGreen" style="color:Snow; font-size:large" align="center">
            Image Preview
            Image after resize
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/Dog3.jpg" height="300" width="400"/>
   <cfimage action="writetobrowser" source="#ResizedImage#">


More ColdFusion examples