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

imageGetIPTCtag(name, tagName) → returns string

Member Function Syntax


imageGetIPTCtag Argument Reference

name string

The image on which this operation is performed.

tagName string

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