Changeset 1113 for trunk/include/functions_metadata.inc.php
- Timestamp:
- Mar 30, 2006, 2:37:07 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_metadata.inc.php
r858 r1113 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 36 36 { 37 37 $result = array(); 38 38 39 39 // Read IPTC data 40 40 $iptc = array(); 41 41 42 42 $imginfo = array(); 43 43 getimagesize($filename, $imginfo); 44 44 45 45 if (isset($imginfo['APP13'])) 46 46 { … … 83 83 { 84 84 // strip leading zeros (weird Kodak Scanner software) 85 while ( $value[0] == chr(0))85 while ( isset($value[0]) and $value[0] == chr(0)) 86 86 { 87 87 $value = substr($value, 1); … … 89 89 // remove binary nulls 90 90 $value = str_replace(chr(0x00), ' ', $value); 91 91 92 92 return $value; 93 93 } … … 108 108 die('Exif extension not available, admin should disable exif use'); 109 109 } 110 110 111 111 // Read EXIF data 112 112 if ($exif = @read_exif_data($filename))
Note: See TracChangeset
for help on using the changeset viewer.