How to convert image file format jpg to gif programmatically in ColdFusion

cfimage - convert image file format jpg to gif programmatically

cfimageActionConvert.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 convert: how to convert image file format jpg to gif pngprogrammatically</title>
</head>

<body>
<h2 style="color:Crimson; font-style:italic">cfimage tag example: how to convert image file format</h2>
<hr width="575" align="left" color="OrangeRed" />
<br />

<cfimage source="Images/CuteFlower1.jpg" action="convert" destination="Images/CuteFlower1.gif" overwrite="yes" quality=".5">


<table border="1" cellpadding="5" cellspacing="0" bordercolor="IndianRed">
    <tr bgcolor="Crimson" style="color:Snow; font-size:large" align="center">
        <td>
            Image Preview .jpg
        </td>
        <td>
            Image Preview .gif [converted]
        </td>
    </tr>
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/CuteFlower1.jpg" height="480" width="480"/>
        </td>
        <td>
   <img src="Images/CuteFlower1.gif" height="480" width="480"/>
        </td>
    </tr>
</table>

</body>
</html>





More ColdFusion examples