Submit Your Article
Home Articles News Tutorials Videos Add An Article
Topics: Design Photoshop Programming PHP CSS Java Database Web Development Javascript Ajax
– Close + Open

Find Out More About DevWebPro!

Sign up for the newsletter


» Terms & Conditions

Welcome to the New DevWebPro!

DevWebPro Includes:
  Hundreds Of Tutorials   Developer News
  Unique Gadget Videos   Tons of Topics to Discuss
  Expert Advice   We Will Publish Your Articles

EXIF Metadata With ColdFusion 8

By: Pete Freitag
Wednesday, October 31st, 2007
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook

One example that I’ve been meaning to post is how to get Image Metadata using the Exchangeable Image File Format or EXIF a using ColdFusion 8.

It’s actually quite simple, to get a list of all the EXIF tags simply use the ImageGetExifMetaData function.

Here’s a quick example:

<cfimage action="read" source="#ExpandPath("lobster.jpg")#" name="img">

<cfset exif = ImageGetEXIFMetaData(img)>

<cfdump var="#exif#">

Here’s a screen shot of a CFDUMP of the EXIF Image Metadata.

As you can see some of the useful keys are Model which gives you the digital camera model (Canon EOS DIGITAL REBEL XTi in this example), Make gives you the digital camera brand (Canon), Exposure Time gives you the exposure time (1/60 sec).

Topics: ,

About the Author:
Pete Freitag (http://www.petefreitag.com/) is a software engineer, and web developer located in central new york. Pete specializes in the HTTP protocol, web services, xml, java, and coldfusion. In 2003 Pete published the ColdFusion MX Developers Cookbook with SAMs Publishing. Pete owns a Firm called Foundeo (http://foundeo.com/) that specializes in Web Consulting, and Products for Web Developers.

Leave a Comment

DevWebPro is an iEntry Network ® publication - © 1998-2010 All Rights Reserved