| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: docapi_image.module,v 1.1.2.1 2008/07/08 04:24:47 bradfordcp Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 104 |
function docapi_image_docapi_metadata($path, $mimetype) { |
function docapi_image_docapi_metadata($path, $mimetype) { |
| 105 |
// Return just the metadata for the specified file |
// Return just the metadata for the specified file |
| 106 |
$meta = array(); |
$meta = array(); |
| 107 |
|
|
| 108 |
|
$exif = exif_read_data($path, 0, true); |
| 109 |
|
foreach ($exif as $key => $section) { |
| 110 |
|
foreach ($section as $name => $val) { |
| 111 |
|
$meta[$key . $name] = $val; |
| 112 |
|
} |
| 113 |
|
} |
| 114 |
|
|
| 115 |
return $meta; |
return $meta; |
| 116 |
} |
} |