Function to read EXIF information from image file

Can we have a function to read EXIF information from image files? This will really help to determine the size and orientation of the image, date the image was taken, location etc., all important attributes for displaying photos...