exif_read_data()
exif_read_data - Reads theEXIFheaders from
JPEGor
TIFF
Syntax
array exif_read_data (string $filename, string $sections, bool $arrays, bool $thumbnail)Arguments
- filename - The name of the image file being read. This cannot be an URL.
- sections - Is a comma separated list of sections that need to be present in file to produce a result array. If none of the requested sections could be found the return value is FALSE. FILE FileName, FileSize, FileDateTime, SectionsFound COMPUTED html, Width, Height, IsColor, and more if available. Height and Width are computed the same way getimagesize() does so their values must not be part of any header returned. Also, htmlis a height/width text string to be used inside normal HTML. ANY_TAG Any information that has a Tag e.g. IFD0, EXIF,... IFD0 All tagged data of IFD0. In normal imagefiles this contains image size and so forth. THUMBNAIL A file is supposed to contain a thumbnail if it has a second IFD. All tagged information about the embedded thumbnail is stored in this section. COMMENT Comment headers of JPEG images. EXIF The EXIF section is a sub section of IFD0. It contains more detailed information about an image. Most of these entries are digital camera related.
- arrays - Specifies whether or not each section becomes an array. The sections COMPUTED, THUMBNAIL, and COMMENTalways become arrays as they may contain values whose names conflict with other sections.
- thumbnail - When set to TRUE the thumbnail itself is read. Otherwise, only the tagged data is read.
