I was asked how I got the EXIF information from photos and images. Here's how:
# Do a print_r of EXIF on a given image
$exif = exif_read_data($_PATH_TO_YOUR_IMAGE);
print_r($exif);
Once you exif_read_data, it gives you an array of all the image information. Then, you'll just echo selected information one by one. (IE: $exif['Width'])
Voila!
km2
How did I not know this earlier! :P
Jan 1st, 2011 Reply