pf » Getting EXIF Metadata with ColdFusion 8

Getting EXIF Metadata with ColdFusion 8

coldfusion

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.

EXIF 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).



Related Entries
2 people found this page useful, what do you think?

Trackback Address: 657/3783A6B1BE0BBBA0B6684048CFC5334C
On 10/26/2007 at 9:11:28 AM MDT Steven Erat wrote:
1
You should change the Color Space setting on your camera from sRGB to AdobeRGB to capture color differentials at a higher resolution.

http://en.wikipedia.org/wiki/Color_space

On 10/26/2007 at 10:34:23 AM MDT Pete Freitag wrote:
2
Thanks for the Tip Steven! The photo I was using was actually taken by my sister in-law on her camera. I will let her know though.

On 11/16/2007 at 6:27:25 AM MST jyoseph wrote:
3
Wow, great post. I had no idea CF8 had a way to extract EXIF data. Thanks!!




  



Spell Checker by Foundeo





Subscribe to my RSS Feed: solosub RSS
Tags