ImageWrite() - write a coldfusion image to the specified filename or destination
ImageWrite.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ImageWrite function example: how to write a coldfusion image to the specified filename or destination</title>
</head>
<body>
<h2 style="color:Crimson">ImageWrite Function Example</h2>
<cfimage source="Test.jpg" name="TestImage">
<cfscript>
ImageWrite(TestImage,"Image.jpg",1);
</cfscript>
<img src="Test.jpg"/>
<img src="Image.jpg"/>
</body>
</html>