Flash Components      Flash Menu      Flash Gallery      Flash Slideshow      FLV Player      Flash Form      MP3 Player      PhotoFlow      Flash CMS      3D Wall      Flash Scroller





        by mlk : Hot Summer Month of 2004

VI.i Retrieving and Displaying Exif Data from a Photo

EXIF data is what digital cameras add to your photos when you shoot them. There are a myriad of properties such as: was the flash used, the ISO speed, exposure time, the date the photo was taken, the date the photo was digitalized, the camera model, weight, width, resolution and photographic terms that I have no clue about.

You can fetch the data in the photos and display it automatically. Credit is due to 'bradles' at the Adobe User to User forums (check out the thread here) for the beginning of the code.

You can adapt the code to anything: you can now sort your pic by camera type, by whether or not the flash was used. You can write all the info to a textfile; possibilities are endless. In the following sample code, the script will take info from the EXIF object and display part of it (I chose shutter speed, camera model and date, and adding a name).

[ Here's what the script does! Link for an alternative photo]

Download .js code PS7 / CS
(right click and 'save as') !! See note at end for CS users



Everything in the following script should be modified to fit your needs. Don't restrain yourself !




Since version CS you no longer refer to 'AD.width' and 'AD.height' but 'AD.width.value' and 'AD.height.value', change that in your scripts to make it work !

On to our second sample code: Saving document layers as separate files with layer names as title

page 6 of 11



kirupa.com's fast and reliable hosting provided by Media Temple.