Retrieves the value of the IPTC tag for a ColdFusion image.

imageGetIPTCtag(name, tagName) → returns String

Member Function Syntax


Argument Reference for the imageGetIPTCtag function


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


Required: Yes
The IPTC tag name whose value is returned.

Examples sample code invoking the imageGetIPTCtag function

Tag Syntax

This example shows how to retrieve the caption for a JPEG file.

<!--- Create a ColdFusion image from a JPEG file. ---> 
 <cfimage source="../cfdocs/images/artgallery/paul05.jpg" name="myImage" action="read"> 
 <!--- Retrieve the camera make used to take the original picture. ---> 
 <cfset cameraMake=imageGetIPTCtag(myImage,"make")> 
 <cfdump var="#cameraMake#"> 

Using getIPTCtag member function

CF 11+ Lucee 4.5+ Extract the copyright notice for image (

imgObj = imageRead("");
copyright = imgObj.getIPTCtag('Copyright Notice');

Fork me on GitHub