imageGetMetadata

A structure containing information about the image.

imageGetMetadata(image) → returns Struct

Member Function Syntax

someImage.getMetadata()

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

Argument Reference for the imageGetMetadata function

name

Required: Yes
The image on which this operation is performed.

Examples sample code invoking the imageGetMetadata function


Tag Usage

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#">

Using getMetadata() member function

CF 11+ Extract the meta data from an image

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

Fork me on GitHub