How to get image information programmatically in coldfusion

cfimage - get image information programmatically


<!DOCTYPE html>
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfimage action info: how to get image information programmatically in coldfusion</title>

<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">
            Image Preview
            Image Information
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/Doll.jpg" height="360" width="306" />
            <cfdump var="#ImageInfoStruct#" label="Image Info">


More ColdFusion examples