Retrieves the value of the IPTC tag for a ColdFusion image.
imageGetIPTCtag(name, tagName)
→ returns string
someImage.getIPTCtag(tagName)
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#">
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);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.