How to read exif_php tutorials from. jpg Images in PHP

Source: Internet
Author: User
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 a 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 is 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 this 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 would 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, 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). Can write a simple script to use the module and
It'll extract all or only required tags out of a jpeg file.

http://www.bkjia.com/PHPjc/445241.html www.bkjia.com true http://www.bkjia.com/PHPjc/445241.html techarticle Read_exif_data (PHP 4) read_exif_data--Reads header information stored in TIFF and JPEG images Description array ex If_read_data (string filename, string sections, bool arrays, b ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.