| 1 |
<?php |
| 2 |
|
| 3 |
// Start of exif v.1.4 $Id: 0b28f1c2604848245c00549a8c8055a1c0d22a49 $ |
| 4 |
|
| 5 |
/** |
| 6 |
* Reads the <acronym>EXIF</acronym> headers from <acronym>JPEG</acronym> or <acronym>TIFF</acronym> |
| 7 |
* @link http://www.php.net/manual/en/function.exif-read-data.php |
| 8 |
* @param filename string <p> |
| 9 |
* The name of the image file being read. This cannot be an |
| 10 |
* URL. |
| 11 |
* </p> |
| 12 |
* @param sections string[optional] <p> |
| 13 |
* Is a comma separated list of sections that need to be present in file |
| 14 |
* to produce a result array. If none of the requested |
| 15 |
* sections could be found the return value is false. |
| 16 |
* |
| 17 |
* |
| 18 |
* |
| 19 |
* <tr valign="top"> |
| 20 |
* <td>FILE</td> |
| 21 |
* <td>FileName, FileSize, FileDateTime, SectionsFound</td> |
| 22 |
* </tr> |
| 23 |
* <tr valign="top"> |
| 24 |
* <td>COMPUTED</td> |
| 25 |
* <td> |
| 26 |
* html, Width, Height, IsColor, and more if available. Height and |
| 27 |
* Width are computed the same way getimagesize |
| 28 |
* does so their values must not be part of any header returned. |
| 29 |
* Also, html is a height/width text string to be used inside normal |
| 30 |
* HTML. |
| 31 |
* </td> |
| 32 |
* </tr> |
| 33 |
* <tr valign="top"> |
| 34 |
* <td>ANY_TAG</td> |
| 35 |
* <td>Any information that has a Tag e.g. IFD0, EXIF, ...</td> |
| 36 |
* </tr> |
| 37 |
* <tr valign="top"> |
| 38 |
* <td>IFD0</td> |
| 39 |
* <td> |
| 40 |
* All tagged data of IFD0. In normal imagefiles this contains |
| 41 |
* image size and so forth. |
| 42 |
* </td> |
| 43 |
* </tr> |
| 44 |
* <tr valign="top"> |
| 45 |
* <td>THUMBNAIL</td> |
| 46 |
* <td> |
| 47 |
* A file is supposed to contain a thumbnail if it has a second IFD. |
| 48 |
* All tagged information about the embedded thumbnail is stored in |
| 49 |
* this section. |
| 50 |
* </td> |
| 51 |
* </tr> |
| 52 |
* <tr valign="top"> |
| 53 |
* <td>COMMENT</td> |
| 54 |
* <td>Comment headers of JPEG images.</td> |
| 55 |
* </tr> |
| 56 |
* <tr valign="top"> |
| 57 |
* <td>EXIF</td> |
| 58 |
* <td> |
| 59 |
* The EXIF section is a sub section of IFD0. It contains |
| 60 |
* more detailed information about an image. Most of these entries |
| 61 |
* are digital camera related. |
| 62 |
* </td> |
| 63 |
* </tr> |
| 64 |
* |
| 65 |
* |
| 66 |
* |
| 67 |
* </p> |
| 68 |
* @param arrays bool[optional] <p> |
| 69 |
* Specifies whether or not each section becomes an array. The |
| 70 |
* sections COMPUTED, |
| 71 |
* THUMBNAIL, and COMMENT |
| 72 |
* always become arrays as they may contain values whose names conflict |
| 73 |
* with other sections. |
| 74 |
* </p> |
| 75 |
* @param thumbnail bool[optional] <p> |
| 76 |
* When set to true the thumbnail itself is read. Otherwise, only the |
| 77 |
* tagged data is read. |
| 78 |
* </p> |
| 79 |
* @return array It returns an associative array where the array indexes are |
| 80 |
* the header names and the array values are the values associated with |
| 81 |
* those headers. If no data can be returned, |
| 82 |
* exif_read_data will return false. |
| 83 |
*/ |
| 84 |
function exif_read_data ($filename, $sections = null, $arrays = null, $thumbnail = null) {} |
| 85 |
|
| 86 |
/** |
| 87 |
* &Alias; <function>exif_read_data</function> |
| 88 |
* @link http://www.php.net/manual/en/function.read-exif-data.php |
| 89 |
* @param filename |
| 90 |
* @param sections_needed[optional] |
| 91 |
* @param sub_arrays[optional] |
| 92 |
* @param read_thumbnail[optional] |
| 93 |
*/ |
| 94 |
function read_exif_data ($filename, $sections_needed, $sub_arrays, $read_thumbnail) {} |
| 95 |
|
| 96 |
/** |
| 97 |
* Get the header name for an index |
| 98 |
* @link http://www.php.net/manual/en/function.exif-tagname.php |
| 99 |
* @param index int <p> |
| 100 |
* The Tag ID for which a Tag Name will be looked up. |
| 101 |
* </p> |
| 102 |
* @return string the header name, or false if index is |
| 103 |
* not a defined EXIF tag id. |
| 104 |
*/ |
| 105 |
function exif_tagname ($index) {} |
| 106 |
|
| 107 |
/** |
| 108 |
* Retrieve the embedded thumbnail of a TIFF or JPEG image |
| 109 |
* @link http://www.php.net/manual/en/function.exif-thumbnail.php |
| 110 |
* @param filename string <p> |
| 111 |
* The name of the image file being read. This image contains an |
| 112 |
* embedded thumbnail. |
| 113 |
* </p> |
| 114 |
* @param width int[optional] <p> |
| 115 |
* The return width of the returned thumbnail. |
| 116 |
* </p> |
| 117 |
* @param height int[optional] <p> |
| 118 |
* The returned height of the returned thumbnail. |
| 119 |
* </p> |
| 120 |
* @param imagetype int[optional] <p> |
| 121 |
* The returned image type of the returned thumbnail. This is either |
| 122 |
* TIFF or JPEG. |
| 123 |
* </p> |
| 124 |
* @return string the embedded thumbnail, or false if the image contains no |
| 125 |
* thumbnail. |
| 126 |
*/ |
| 127 |
function exif_thumbnail ($filename, &$width = null, &$height = null, &$imagetype = null) {} |
| 128 |
|
| 129 |
/** |
| 130 |
* Determine the type of an image |
| 131 |
* @link http://www.php.net/manual/en/function.exif-imagetype.php |
| 132 |
* @param filename string The image being checked. |
| 133 |
* @return int When a correct signature is found, the appropriate constant value will be |
| 134 |
* returned otherwise the return value is false. The return value is the |
| 135 |
* same value that getimagesize returns in index 2 but |
| 136 |
* exif_imagetype is much faster. |
| 137 |
* </p> |
| 138 |
* |
| 139 |
* <p> |
| 140 |
* exif_imagetype will emit an E_NOTICE |
| 141 |
* and return false if it is unable to read enough bytes from the file to |
| 142 |
* determine the image type. |
| 143 |
*/ |
| 144 |
function exif_imagetype ($filename) {} |
| 145 |
|
| 146 |
define ('EXIF_USE_MBSTRING', 1); |
| 147 |
|
| 148 |
// End of exif v.1.4 $Id: 0b28f1c2604848245c00549a8c8055a1c0d22a49 $ |
| 149 |
?> |