Read_exif_data
(PHP 4)
Read_exif_data -- Reads header information stored in TIFF and JPEG images
Description
Array exif_read_data (string filename, string sections, bool arrays, bool thumbnail)
Note: The read_exif_data () function is an alias for exif_read_data ().
See also exif_thumbnail ().
User Contributed Notes
Read_exif_data
Inq@inq.dhs.org
03-Jan-2001
Each of my jpeg files are over 1 meg, and read_exif_data seems to read
Whole file and it's very slow. So I wrote a function to read only
Beginning of each file:
Function read_exif_data_quick ($ path ){
$ Tmpfile = "/tmp/read_exif_data_quick.tmp_file ";
$ In = fopen ($ path, "r ");
$ Out = fopen ($ tmpfile, "w ");
Fwrite ($ out, fread ($ in, 15000 ));
Fclose ($ in );
Fclose ($ out );
Return read_exif_data ($ tmpfile );
}
And so far it works for all of my sort S (taken with my digital camera ).
Garbage@sunflowerroad.com
06-Jul-2001 05:33
I started drooling when I saw that php cocould read the exif information
Automatically for me. Then I found out that read_exif_data is NOT
Compiled into the standard win32 build (think about including it please !).
To get around this I found the following program that runs from
Command line and works really well.
It's actually a set of utilities that will even allow you to put exif data
Into images.
It's freeware, but the license says no other cial use without written
Permission.
Http://www.users.bigpond.com/hughthomas/exif.html
Garbage@sunflowerroad.com
06-Jul-2001 05:34
By the way, it works under linux or win32
Ibaldin@anr.mcnc.org
21-Aug-2001
Perl Image: Info module is capable of reading EXIF tags (places them
An associative array). You can write a simple script to use the module and
It will extract all or only required tags out of a jpeg file.