/**
  * Read EXIF
  *
  * Reads EXIF metadata and assigns values to {@link $exif}.
  *
  * @param string	$f		Image file path
  */
 protected function readEXIF($f)
 {
     if (!function_exists('exif_read_data')) {
         return;
     }
     $d = @exif_read_data($f, 'ANY_TAG');
     if (!is_array($d)) {
         return;
     }
     foreach ($this->exif_to_property as $k => $v) {
         if (isset($d[$k])) {
             $this->exif[$v] = text::toUTF8($d[$k]);
         }
     }
 }
示例#2
0
 protected function cleanStr($str)
 {
     return text::cleanUTF8(@text::toUTF8($str));
 }