pf » Getting EXIF Metadata with ColdFusion 8
October 26, 2007
Getting EXIF Metadata with ColdFusion 8
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).
Permalink | Add Comment |
add to del.icio.us
| Tags: coldfusion 8, cfimage, exif, imagegetexifmetadata, cfml, examples
add to del.icio.us
| Tags: coldfusion 8, cfimage, exif, imagegetexifmetadata, cfml, examples
Related Entries
- CFImage Presentation Outline - September 14, 2007
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks - April 5, 2008
- 10 Most Useful Image Functions in ColdFusion 8 - April 5, 2008
- CFImage Effects Library for ColdFusion 8 - August 9, 2007
- 3 New Image Effects for ColdFusion 8 - April 28, 2008
Trackback Address: 657/3783A6B1BE0BBBA0B6684048CFC5334C
Comments
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!!
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
Pete Freitag is a software engineer, and web developer located in










