Search:
Calendar:
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Subscribe:
Archives By Subject:
AIR (6) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (39) [RSS]
ColdFusion (65) [RSS]
Flash (5) [RSS]
Flex (37) [RSS]
Frameworks (2) [RSS]
Free Software (2) [RSS]
FXUG (21) [RSS]
General (33) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (13) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Tags:
Recent Entries:
Top Posts:
- [10495] Paper Vision 3D Sphere - Carousels on Steroids!
- [5553] PaperVision Carousel0.3 - one step closer to the master plan!
- [5501] Carousel v0.2 - source code
- [5498] Simple PaperVision3D Blurring example
- [5496] PaperVision3D/Flex2 Carousel v0.2
- [5219] Saving images from Flex using ColdFusion: Simple Example with source code
- [4781] PaperVision3D is good for cubes! - a "geek" gift
- [4632] Simple Dynamic Cursor Example in Flex2: With source code
- [4507] Simple PaperVision3D Blurring example : source code
- [4010] PaperVision, Flex2 and my daughter all playing together!
Recent Comments:
- Paper Vision 3D Sphere - Carousels on Steroids!
Evan said: Now I feel dumb but where is the source. This looks really close to what I want to create and anyth... [More] - Paper Vision 3D Sphere - Carousels on Steroids!
Michael said: Nice Effect [More] - Saving images from Flex using ColdFusion
Priya said: nice !! how to do give some hint [More] - Learn Flex and Air and win stuff!
Jasen said: Would be good to start to learn. [More] - Adventures in jQuery
Joe Roberts said: I'm glad you are finding the project useful. I agree, I find it quite liberating to be able to fill ... [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Mark Flewellen
- [6] Steve Bryant
- [4] barry.b
- [4] Raymond Camden
- [3] Peter Bell
- [2] Dan Wilson
- [2] carlos
- [2] riabook
My Links:
RSS:
Introducing JpgMetadataReader.cfc
Here is the JpgMetadataReader.cfc, why you would use it and how would use it.
Every JPG has meta data connected to it. The format I was mainly interested in was IPTC (International Press Telecommunications Council) standard. (more about that here The one I was most interested in was the "Caption", the idea being you could set this value up, upload the file and it would be available to be use on the sever when displaying it in an album view (in my case Simple Viewer) What is great about this is that you can assign the comment TO THE JPG, and thus storing the data in a single location, rather than the JPG in one place, and the information about it in another!
Along with the IPTC meta data there is also the EXIF (Exchangeable Image File Format) meta data. The EXIT meta data has lots of good stuff about when/how/what settings the camera used when the photo was taken. (More about that here)
There are 2 programs I use to set this meta data up, both are free (of course!)
- IrfanView (with all the plugins installed) http://www.irfanview.net/ - PixVue, which gives a nifty right click menu to add/edit the meta data. http://www.pixvue.com/
This CFC uses the Java class metadata-extractor-2.3.1.jar, which you can download from: http://drewnoakes.com/code/exif/releases/ You will need to put this in the ColdFusion "lib" directory and restart the ColdFusion instance.
Right, now for some code...
<cfset stMetaData = oMetaData.getMetaDataStruct("\path\to\my\picture.jpg")>
<cfdump var="#stMetaData#">
This will return ALL meta data to do with the JPG (EXIF, IPTC and any other) If it is not defined, it does not return it, so you would have to check for it before you attempt to output it...
I have only tested it on WindowsXP running CF7 on JPG files (as that's all I use...), but feel free to have a look at it use it!
If you find it really useful consider donating to http://drewnoakes.com/code/exif/releases/, as he did all the really hard work!
...in the mean time, this'll work fine until CF8 comes out with all this native built in!

If you look at the v0.3 of the JpgMetadataReader there are instructions on using Mark Mandle's Java class loader, so you don't need to put the class in to the lib dir.
Hope that helps
I did get this to work on Railo 2.0. Thanks so much for this as it finally allowed me to create an upload page that lets me write the exif data to the database with the other image info. It has been a tremendous help. Thanks.
Glad to know someone other than me finds it useful!