Lines Matching refs:_info

49     var $_info;  variable in JpegMeta
66 unset($this->_info);
82 return $this->_info;
99 $info['Name'] = $this->_info['file']['Name'];
100 if (isset($this->_info['file']['Url'])) {
101 $info['Url'] = $this->_info['file']['Url'];
104 $info['Size'] = $this->_info['file']['Size'];
105 $info['NiceSize'] = $this->_info['file']['NiceSize'];
108 if (@isset($this->_info['sof']['Format'])) {
109 $info['Format'] = $this->_info['sof']['Format'] . " JPEG";
111 $info['Format'] = $this->_info['sof']['Format'] . " JPEG";
114 if (@isset($this->_info['sof']['ColorChannels'])) {
115 $info['ColorMode'] = ($this->_info['sof']['ColorChannels'] > 1) ? "Color" : "B&W";
244 if (!isset($this->_info['dates'])) {
245 $this->_info['dates'] = $this->getDates();
248 if (isset($this->_info['dates'][$field])) {
249 return $this->_info['dates'][$field];
264 if (!isset($this->_info['file'])) {
268 if (isset($this->_info['file'][$field])) {
269 return $this->_info['file'][$field];
299 if (!isset($this->_info['exif'])) {
302 if(!isset($this->_info['exif']['ExposureTime'])){
306 $field = $this->_info['exif']['ExposureTime'];
320 if (!isset($this->_info['exif'])) {
328 if (isset($this->_info['exif'][$field])) {
329 return $this->_info['exif'][$field];
344 if (!isset($this->_info['xmp'])) {
352 if (isset($this->_info['xmp'][$field])) {
353 return $this->_info['xmp'][$field];
368 if (!isset($this->_info['adobe'])) {
376 if (isset($this->_info['adobe'][$field])) {
377 return $this->_info['adobe'][$field];
392 if (!isset($this->_info['iptc'])) {
400 if (isset($this->_info['iptc'][$field])) {
401 return $this->_info['iptc'][$field];
418 if (!isset($this->_info['exif'])) {
426 if ($this->_info['exif'] == false) {
427 $this->_info['exif'] = array();
437 $this->_info['exif'][$field] = $value;
452 if (!isset($this->_info['adobe'])) {
460 if ($this->_info['adobe'] == false) {
461 $this->_info['adobe'] = array();
464 $this->_info['adobe'][$field] = $value;
513 if (!isset($this->_info['iptc'])) {
521 if ($this->_info['iptc'] == false) {
522 $this->_info['iptc'] = array();
525 $this->_info['iptc'][$field] = $value;
539 if (!isset($this->_info['exif'])) {
547 if ($this->_info['exif'] != false) {
548 unset($this->_info['exif'][$field]);
563 if (!isset($this->_info['adobe'])) {
571 if ($this->_info['adobe'] != false) {
572 unset($this->_info['adobe'][$field]);
587 if (!isset($this->_info['iptc'])) {
595 if ($this->_info['iptc'] != false) {
596 unset($this->_info['iptc'][$field]);
639 if (@isset($this->_info['file']['UnixTime'])) {
641 $dates['FileModified'] = $this->_info['file']['UnixTime'];
642 $dates['Time'] = $this->_info['file']['UnixTime'];
644 $dates['TimeStr'] = date("Y-m-d H:i:s", $this->_info['file']['UnixTime']);
645 $dates['EarliestTime'] = $this->_info['file']['UnixTime'];
647 $dates['EarliestTimeStr'] = date("Y-m-d H:i:s", $this->_info['file']['UnixTime']);
648 $dates['LatestTime'] = $this->_info['file']['UnixTime'];
650 $dates['LatestTimeStr'] = date("Y-m-d H:i:s", $this->_info['file']['UnixTime']);
670 if (!isset($this->_info['exif'][$field])) {
674 $dates[$source] = $this->_info['exif'][$field];
676 foreach ($this->parseExifDateTime($this->_info['exif'][$field]) as $t) {
689 if (@isset($this->_info['iptc']['DateCreated'])) {
690 $dates['IPTCDateCreated'] = $this->_info['iptc']['DateCreated'];
692 $aux = $this->_info['iptc']['DateCreated'];
707 if (@isset($this->_info['file']['UnixTime'])) {
708 $dates['FileModified'] = $this->_info['file']['UnixTime'];
710 $t = $this->_info['file']['UnixTime'];
774 if (!isset($this->_info['sof'])) {
782 if (isset($this->_info['sof']['ImageWidth'])) {
783 return $this->_info['sof']['ImageWidth'];
786 if (!isset($this->_info['exif'])) {
790 if (isset($this->_info['exif']['PixelXDimension'])) {
791 return $this->_info['exif']['PixelXDimension'];
805 if (!isset($this->_info['sof'])) {
813 if (isset($this->_info['sof']['ImageHeight'])) {
814 return $this->_info['sof']['ImageHeight'];
817 if (!isset($this->_info['exif'])) {
821 if (isset($this->_info['exif']['PixelYDimension'])) {
822 return $this->_info['exif']['PixelYDimension'];
856 if (!isset($this->_info['exif'])) {
864 if (isset($this->_info['exif']) && is_array($this->_info['exif'])) {
865 if (isset($this->_info['exif']['JFIFThumbnail'])) {
872 if (!isset($this->_info['adobe'])) {
880 if (isset($this->_info['adobe']) && is_array($this->_info['adobe'])) {
881 if (isset($this->_info['adobe']['ThumbnailData'])) {
902 if (!isset($this->_info['exif'])) {
910 if (isset($this->_info['exif']) && is_array($this->_info['exif'])) {
911 if (isset($this->_info['exif']['JFIFThumbnail'])) {
912 $data =& $this->_info['exif']['JFIFThumbnail'];
918 if (!isset($this->_info['adobe'])) {
926 if (isset($this->_info['adobe']) && is_array($this->_info['adobe'])) {
927 if (isset($this->_info['adobe']['ThumbnailData'])) {
928 $data =& $this->_info['adobe']['ThumbnailData'];
976 unset($this->_info);
1096 if (!isset($this->_info['file'])) {
1107 if (!isset($this->_info['jfif'])) {
1110 if (!isset($this->_info['jpeg'])) {
1113 if (!isset($this->_info['exif'])) {
1116 if (!isset($this->_info['xmp'])) {
1119 if (!isset($this->_info['adobe'])) {
1221 if (isset($this->_info['exif']) && is_array($this->_info['exif'])) {
1230 if ((isset($this->_info['adobe']) && is_array($this->_info['adobe']))
1231 || (isset($this->_info['iptc']) && is_array($this->_info['iptc']))) {
1318 $this->_info['file'] = array();
1319 …$this->_info['file']['Name'] = utf8_decodeFN(\dokuwiki\Utf8\PhpString::basename($this->_fileName));
1320 $this->_info['file']['Path'] = fullpath($this->_fileName);
1321 $this->_info['file']['Size'] = filesize($this->_fileName);
1322 if ($this->_info['file']['Size'] < 1024) {
1323 $this->_info['file']['NiceSize'] = $this->_info['file']['Size'] . 'B';
1324 } elseif ($this->_info['file']['Size'] < (1024 * 1024)) {
1325 … $this->_info['file']['NiceSize'] = round($this->_info['file']['Size'] / 1024) . 'KB';
1326 } elseif ($this->_info['file']['Size'] < (1024 * 1024 * 1024)) {
1327 … $this->_info['file']['NiceSize'] = round($this->_info['file']['Size'] / (1024*1024)) . 'MB';
1329 $this->_info['file']['NiceSize'] = $this->_info['file']['Size'] . 'B';
1331 $this->_info['file']['UnixTime'] = filemtime($this->_fileName);
1335 $this->_info['file']['Width'] = $size[0];
1336 $this->_info['file']['Height'] = $size[1];
1343 $this->_info['file']['Mime'] = 'image/gif';
1344 $this->_info['file']['Format'] = 'GIF';
1347 $this->_info['file']['Mime'] = 'image/jpeg';
1348 $this->_info['file']['Format'] = 'JPEG';
1351 $this->_info['file']['Mime'] = 'image/png';
1352 $this->_info['file']['Format'] = 'PNG';
1355 $this->_info['file']['Mime'] = 'application/x-shockwave-flash';
1356 $this->_info['file']['Format'] = 'SWF';
1359 $this->_info['file']['Mime'] = 'image/psd';
1360 $this->_info['file']['Format'] = 'PSD';
1363 $this->_info['file']['Mime'] = 'image/bmp';
1364 $this->_info['file']['Format'] = 'BMP';
1367 $this->_info['file']['Mime'] = 'image/tiff';
1368 $this->_info['file']['Format'] = 'TIFF (Intel)';
1371 $this->_info['file']['Mime'] = 'image/tiff';
1372 $this->_info['file']['Format'] = 'TIFF (Motorola)';
1375 $this->_info['file']['Mime'] = 'application/octet-stream';
1376 $this->_info['file']['Format'] = 'JPC';
1379 $this->_info['file']['Mime'] = 'image/jp2';
1380 $this->_info['file']['Format'] = 'JP2';
1383 $this->_info['file']['Mime'] = 'application/octet-stream';
1384 $this->_info['file']['Format'] = 'JPX';
1387 $this->_info['file']['Mime'] = 'application/octet-stream';
1388 $this->_info['file']['Format'] = 'JB2';
1391 $this->_info['file']['Mime'] = 'application/x-shockwave-flash';
1392 $this->_info['file']['Format'] = 'SWC';
1395 $this->_info['file']['Mime'] = 'image/iff';
1396 $this->_info['file']['Format'] = 'IFF';
1399 $this->_info['file']['Mime'] = 'image/vnd.wap.wbmp';
1400 $this->_info['file']['Format'] = 'WBMP';
1403 $this->_info['file']['Mime'] = 'image/xbm';
1404 $this->_info['file']['Format'] = 'XBM';
1407 $this->_info['file']['Mime'] = 'image/unknown';
1411 $this->_info['file'] = array();
1412 $this->_info['file']['Name'] = \dokuwiki\Utf8\PhpString::basename($this->_fileName);
1413 $this->_info['file']['Url'] = $this->_fileName;
1444 $this->_info['jfif'] = false;
1448 $this->_info['jfif'] = array();
1453 $this->_info['jfif']['Version'] = sprintf('%d.%02d', $vmaj, $vmin);
1458 $this->_info['jfif']['Units'] = 'pixels';
1461 $this->_info['jfif']['Units'] = 'dpi';
1464 $this->_info['jfif']['Units'] = 'dpcm';
1467 $this->_info['jfif']['Units'] = 'unknown';
1474 $this->_info['jfif']['XDensity'] = $xdens;
1475 $this->_info['jfif']['YDensity'] = $ydens;
1480 $this->_info['jfif']['ThumbnailWidth'] = $thumbx;
1481 $this->_info['jfif']['ThumbnailHeight'] = $thumby;
1484 $this->_info['jfif'] = false;
1517 $this->_info['sof'] = false;
1522 $this->_info['sof'] = array();
1541 $this->_info['sof']['Format'] = $format;
1542 $this->_info['sof']['SamplePrecision'] = $this->_getByte($data, $pos + 0);
1543 $this->_info['sof']['ImageHeight'] = $this->_getShort($data, $pos + 1);
1544 $this->_info['sof']['ImageWidth'] = $this->_getShort($data, $pos + 3);
1545 $this->_info['sof']['ColorChannels'] = $this->_getByte($data, $pos + 5);
1548 $this->_info['sof'] = false;
1584 $this->_info['xmp'] = false;
1595 $this->_info['xmp'] = false;
1599 $this->_info['xmp'] = array();
1605 … $this->_parseXmpNode($values, $i, $this->_info['xmp'][$values[$i]['tag']], $count);
1611 $this->_info['xmp'] = false;
1692 $this->_info['exif'] = false;
1696 $this->_info['exif'] = array();
1715 $this->_info['exif']['ByteAlign'] = "Big Endian";
1717 $this->_info['exif']['ByteAlign'] = "Little Endian";
1729 $this->_info['exif'] = false;
1922 if (isset($this->_info['exif'][$tagName])) {
1923 if (!is_array($this->_info['exif'][$tagName])) {
1925 $aux[0] = $this->_info['exif'][$tagName];
1926 $this->_info['exif'][$tagName] = $aux;
1929 … $this->_info['exif'][$tagName][count($this->_info['exif'][$tagName])] = $value;
1931 $this->_info['exif'][$tagName] = $value;
1947 …$this->_info['exif']['JFIFThumbnail'] = $this->_getFixedString($data, $base + $exifThumbnailOffset…
1951 …$this->_info['exif']['TIFFStrips'] = $this->_getFixedString($data, $base + $exifTIFFOffset, $exifT…
1973 if (!isset($this->_info['exif'])) {
1981 …if (isset($this->_info['exif']['ByteAlign']) && ($this->_info['exif']['ByteAlign'] == "Big Endian"…
2091 if (isset($this->_info['exif']['EXIFVersion'])) {
2099 if (isset($this->_info['exif']['GPSVersionID'])) {
2106 if (isset($this->_info['exif']['TIFFStrips'])) {
2107 $value =& $this->_info['exif']['TIFFStrips'];
2113 if (isset($this->_info['exif']['TIFFStrips'])) {
2114 $value = strlen($this->_info['exif']['TIFFStrips']);
2119 if (isset($this->_info['exif']['JFIFThumbnail'])) {
2120 $value =& $this->_info['exif']['JFIFThumbnail'];
2126 if (isset($this->_info['exif']['JFIFThumbnail'])) {
2127 $value = strlen($this->_info['exif']['JFIFThumbnail']);
2132 if (isset($this->_info['exif']['InteroperabilityIndex'])) {
2138 } elseif (isset($this->_info['exif'][$name])) {
2139 $origValue =& $this->_info['exif'][$name];
2144 $origValue = array($this->_info['exif'][$name]);
2409 if (!isset($this->_info)) return false;
2410 return isset($this->_info[$name]) && $this->_info[$name] === false;
2437 $this->_info['adobe'] = false;
2438 $this->_info['iptc'] = false;
2442 $this->_info['adobe'] = array();
2443 $this->_info['adobe']['raw'] = array();
2444 $this->_info['iptc'] = array();
2477 $this->_info['adobe']['CopyrightFlag'] = $this->_getByte($data, $pos);
2481 … $this->_info['adobe']['ImageURL'] = $this->_getFixedString($data, $pos, $length);
2488 $this->_info['adobe']['ThumbnailWidth'] = $this->_getLong($data, $pos);
2490 $this->_info['adobe']['ThumbnailHeight'] = $this->_getLong($data, $pos);
2495 … $this->_info['adobe']['ThumbnailData'] = $this->_getFixedString($data, $pos, $length - 28);
2505 $this->_info['adobe']['raw'][$label] = array();
2506 $this->_info['adobe']['raw'][$label]['type'] = $type;
2507 $this->_info['adobe']['raw'][$label]['header'] = $header;
2508 … $this->_info['adobe']['raw'][$label]['data'] =& $this->_getFixedString($data, $basePos, $length);
2514 $this->_info['adobe'] = false;
2515 $this->_info['iptc'] = false;
2547 if (isset($this->_info['iptc'][$label])) {
2548 if (!is_array($this->_info['iptc'][$label])) {
2550 $aux[0] = $this->_info['iptc'][$label];
2551 $this->_info['iptc'][$label] = $aux;
2553 …$this->_info['iptc'][$label][ count($this->_info['iptc'][$label]) ] = $this->_getFixedString($data…
2555 $this->_info['iptc'][$label] = $this->_getFixedString($data, $pos, $length);
2566 if (isset($this->_info['iptc'])) {
2567 if (!isset($this->_info['adobe'])) {
2568 $this->_info['adobe'] = array();
2570 if (!isset($this->_info['adobe']['raw'])) {
2571 $this->_info['adobe']['raw'] = array();
2573 if (!isset($this->_info['adobe']['raw']['8BIM_0x0404'])) {
2574 $this->_info['adobe']['raw']['8BIM_0x0404'] = array();
2576 $this->_info['adobe']['raw']['8BIM_0x0404']['type'] = 0x0404;
2577 $this->_info['adobe']['raw']['8BIM_0x0404']['header'] = "Caption";
2578 $this->_info['adobe']['raw']['8BIM_0x0404']['data'] =& $this->_writeIPTC();
2581 if (isset($this->_info['adobe']['raw']) && (count($this->_info['adobe']['raw']) > 0)) {
2585 reset($this->_info['adobe']['raw']);
2586 foreach ($this->_info['adobe']['raw'] as $value){
2641 foreach($this->_info['iptc'] as $label => $value) {
2642 $value =& $this->_info['iptc'][$label];