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 03:52
each of my jpeg files are over 1 meg, and read_exif_data seems to read the
whole file and it's very slow. so i wrote a function to read only the
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 jpegs (taken with my digital camera).
garbage@sunflowerroad.com
06-jul-2001 05:33
i started drooling when i saw that php could 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 the
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 commercial 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 11:43
perl image::info module is capable of reading exif tags (places them into
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.
http://www.bkjia.com/phpjc/445241.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/445241.htmltecharticleread_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, b...