How to rotate image programmatically in coldfusion

cfimage - rotate an image programmatically

cfimageActionRotate.cfm



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfimage action rotate: how to rotate image programmatically in coldfusion</title>
</head>

<body>
<h2 style="color:Crimson; font-style:italic">cfimage tag example: how to use rotate attribute</h2>
<hr width="500" align="left" color="OrangeRed" />
<br />

<cfimage source="Images/Butterfly.jpg" action="rotate" angle="60" name="ButterflyRotate">


<table border="1" cellpadding="5" cellspacing="0" bordercolor="DarkSeaGreen">
    <tr bgcolor="SeaGreen" style="color:Snow; font-size:large" align="center">
        <td>
            Original Image
        </td>
        <td>
            Modified Image: after Rotate
        </td>
    </tr>
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/Butterfly.jpg" height="360" width="306"/>
        </td>
        <td>
            <cfimage source="#ButterflyRotate#" action="writetobrowser">
        </td>
    </tr>
</table>

</body>
</html>







More ColdFusion examples