cfimage - get image information programmatically
cfimageActionInfo.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 info: how to get image information programmatically in coldfusion</title>
</head>
<body>
<h2 style="color:DodgerBlue; font-style:italic">cfimage tag example: how to get image information</h2>
<hr width="575" align="left" color="DodgerBlue" />
<br />
<cfimage source="Images/Doll.jpg" action="info" structname="ImageInfoStruct">
<table border="1" cellpadding="5" cellspacing="0" bordercolor="Wheat">
<tr bgcolor="Tan" style="color:Snow; font-size:large" align="center">
<td>
Image Preview
</td>
<td>
Image Information
</td>
</tr>
<tr height="100" valign="top">
<td style="color:RosyBrown; font-weight:bold">
<img src="Images/Doll.jpg" height="360" width="306" />
</td>
<td>
<cfdump var="#ImageInfoStruct#" label="Image Info">
</td>
</tr>
</table>
</body>
</html>