imageGetIPTCtag

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

imageGetIPTCtag(name, tagName) → returns String

Member Function Syntax

someImage.getIPTCtag(tagName)

imageGetIPTCtag Argument Reference

name
Required

The image on which this operation is performed.

tagName
Required

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 (https://code.google.com/p/metadata-extractor/wiki/SampleOutput)

imgObj = imageRead("http://sample-images.metadata-extractor.googlecode.com/git/FujiFilm%20FinePixS1Pro%20(1).jpg");
copyright = imgObj.getIPTCtag('Copyright Notice');
writeOutput(copyright);

Fork me on GitHub