imageGetMetadata

A structure containing information about the image.

imageGetMetadata(image) → returns struct

Member Function Syntax

someImage.getMetadata()

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

Argument Reference

name string
Required

The image on which this operation is performed.

Examples
Sample code invoking the imageGetMetadata function

CF 11+ Extract the meta data from an image

<cfimage action="read" name="myImage" source="http://www.exiv2.org/include/img_1771.jpg">
<cfset metaData = imageGetMetadata(myImage)>
<cfdump var="#metaData#">

CF 11+ Extract the meta data from an image

imgObj = imageRead("http://www.exiv2.org/include/img_1771.jpg");
metaData = imgObj.getMetadata();
writeDump(metaData);

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

Fork me on GitHub