A structure containing information about the image.

imageGetMetadata(image) → returns struct

Member Function Syntax


This function requires Adobe ColdFusion 11 and up.  Not supported on Lucee, etc.

Argument Reference

name string

The image on which this operation is performed.

Sample code invoking the imageGetMetadata function

CF 11+ Extract the meta data from an image

<cfimage action="read" name="myImage" source="">
<cfset metaData = imageGetMetadata(myImage)>
<cfdump var="#metaData#">

CF 11+ Extract the meta data from an image

imgObj = imageRead("");
metaData = imgObj.getMetadata();

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub