EXIF Image Info by 7Shadows
7Shadows

EXIF Image Info

by 7Shadows in Tutorials

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!

  • Copy Link:
  • SN Code:
  • Press Enter to submit and Shift+Enter to add a line
  • km2

    km2

    How did I not know this earlier! :P

    Jan 1st, 2011 Reply