<?php defined("SYSPATH") or die("No direct script access.");
/*
Exifer 1.6
Extracts EXIF information from digital photos.
Originally created by:
Copyright © 2005 Jake Olefsky
http:// www.offsky.com/software/exif/index.php
jake@olefsky.com
This program is free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. http:// www.gnu.org/copyleft/gpl.html
SUMMARY:
This script will correctly parse all of the EXIF data included in images taken
with digital cameras. It will read the IDF0, IDF1, SubIDF and InteroperabilityIFD
fields as well as parsing some of the MakerNote fields that vary depending on
camera make and model. This script parses more tags than the internal PHP exif
implementation and it will correctly identify and decode what all the values mean.
This version will correctly parse the MakerNote field for Nikon, Olympus, and Canon
digital cameras. Others will follow.
TESTED WITH:
Nikon CoolPix 700
Nikon CoolPix E3200
Nikon CoolPix 4500
Nikon CoolPix 950
Nikon Coolpix 5700
Canon PowerShot S200
Canon PowerShot S110
Olympus C2040Z
Olympus C960
Olumpus E-300
Olympus E-410
Olympus E-500
Olympus E-510
Olympus E-3
Canon Ixus
Canon EOS 300D
Canon Digital Rebel
Canon EOS 10D
Canon PowerShot G2
FujiFilm DX 10
FujiFilm MX-1200
FujiFilm FinePix2400
FujiFilm FinePix2600
FujiFilm FinePix S602
FujiFilm FinePix40i
Sony D700
Sony Cybershot
Kodak DC210
Kodak DC240
Kodak DC4800
Kodak DX3215
Ricoh RDC-5300
Sanyo VPC-G250
Sanyo VPC-SX550
Epson 3100z
VERSION HISTORY:
1.0 September 23, 2002
+ First Public Release
1.1 January 25, 2003
+ Gracefully handled the error case where you pass an empty string to this library
+ Fixed an inconsistency in the Olympus Camera parsing module
+ Added support for parsing the MakerNote of Canon images.
+ Modified how the imagefile is opened so it works for windows machines.
+ Correctly parses the FocalPlaneResolutionUnit and PhotometricInterpretation fields
+ Negative rational numbers are properly displayed
+ Strange old cameras that use Motorola endineness are now properly supported
+ Tested with several more cameras
Potential Problem: Negative Shorts and Negative Longs may not be correctly displayed, but I
have not yet found an example of negative shorts or longs being used.
1.2 March 30, 2003
+ Fixed an error that was displayed if you edited your image with WinXP's image viewer
+ Fixed a bug that caused some images saved from 3rd party software to not parse correctly
+ Changed the ExposureTime tag to display in fractional seconds rather than decimal
+ Updated the ShutterSpeedValue tag to have the units of 'sec'
+ Added support for parsing the MakeNote of FujiFilm images
+ Added support for parsing the MakeNote of Sanyo images
+ Fixed a bug with parsing some Olympus MakerNote tags
+ Tested with several more cameras
1.3 June 15, 2003
+ Fixed Canon MakerNote support for some models
(Canon has very difficult and inconsistent MakerNote syntax)
+ Negative signed shorts and negative signed longs are properly displayed
+ Several more tags are defined
+ More information in my comments about what each tag is
+ Parses and Displays GPS information if available
+ Tested with several more cameras
1.4 September 14, 2003
+ This software is now licensed under the GNU General Public License
+ Exposure time is now correctly displayed when the numerator is 10
+ Fixed the calculation and display of ShutterSpeedValue, ApertureValue and MaxApertureValue
+ Fixed a bug with the GPS code
+ Tested with several more cameras
1.5 February 18, 2005
+ It now gracefully deals with a passed in file that cannot be found.
+ Fixed a GPS bug for the parsing of Altitude and other signed rational numbers
+ Defined more values for Canon cameras.
+ Added 'bulb' detection for ShutterSpeed
+ Made script loading a little faster and less memory intensive.
+ Bug fixes
+ Better error reporting
+ Graceful failure for files with corrupt exif info.
+ QuickTime (including iPhoto) messes up the Makernote tag for certain photos (no workaround yet)
+ Now reads exif information when the jpeg markers are out of order
+ Gives raw data output for IPTC, COM and APP2 fields which are sometimes set by other applications
+ Improvements to Nikon Makernote parsing
1.6 March 25th, 2007 [Zenphoto]
+ Adopted into the Zenphoto gallery project, at http://www.zenphoto.org
+ Fixed a bug where strings had trailing null bytes.
+ Formatted selected strings better.
+ Added calculation of 35mm-equivalent focal length when possible.
+ Cleaned up code for readability and efficiency.
1.7 April 11th, 2008 [Zenphoto]
+ Fixed bug with newer Olympus cameras where number of fields was miscalculated leading to bad performance.
+ More logical fraction calculation for shutter speed.
*/
//================================================================================================
// Converts from Intel to Motorola endien. Just reverses the bytes (assumes hex is passed in)
//================================================================================================
function intel2Moto($intel) {
static $cache = array();
if (isset($cache[$intel])) {
return $cache[$intel];
}
$cache[$intel] = '';
$len = strlen($intel);
if ($len > 1000) {
debugLogBacktrace('intel2Moto called with unreasonable data string: length='.$len);
trigger_error(sprintf((string) t('intel2Moto called with unreasonable data string: length=%s. See debug log for details. (Setting DEBUG_EXIF to true might help locate problem images.)'),$len));
} else {
for($i = 0; $i <= $len; $i += 2) {
$cache[$intel] .= substr($intel, $len-$i, 2);
}
}
return $cache[$intel];
}
//================================================================================================
// Looks up the name of the tag
//================================================================================================
function lookup_tag($tag) {
switch($tag) {
// used by IFD0 'Camera Tags'
case '000b': $tag = 'ACDComment'; break; // text string up to 999 bytes long
case '00fe': $tag = 'ImageType'; break; // integer -2147483648 to 2147483647
case '0106': $tag = 'PhotometricInterpret'; break; // ?? Please send sample image with this tag
case '010e': $tag = 'ImageDescription'; break; // text string up to 999 bytes long
case '010f': $tag = 'Make'; break; // text string up to 999 bytes long
case '0110': $tag = 'Model'; break; // text string up to 999 bytes long
case '0112': $tag = 'Orientation'; break; // integer values 1-9
case '0115': $tag = 'SamplePerPixel'; break; // integer 0-65535
case '011a': $tag = 'xResolution'; break; // positive rational number
case '011b': $tag = 'yResolution'; break; // positive rational number
case '011c': $tag = 'PlanarConfig'; break; // integer values 1-2
case '0128': $tag = 'ResolutionUnit'; break; // integer values 1-3
case '0131': $tag = 'Software'; break; // text string up to 999 bytes long
case '0132': $tag = 'DateTime'; break; // YYYY:MM:DD HH:MM:SS
case '013b': $tag = 'Artist'; break; // text st
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码-开源的PHP图库相册 Menalto Gallery.zip
共631个文件
php:478个
png:46个
css:32个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 24 浏览量
2022-11-22
16:43:55
上传
评论
收藏 1.47MB ZIP 举报
温馨提示
PHP实例开发源码—开源的PHP图库相册 Menalto Gallery.zip PHP实例开发源码—开源的PHP图库相册 Menalto Gallery.zip PHP实例开发源码—开源的PHP图库相册 Menalto Gallery.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码-开源的PHP图库相册 Menalto Gallery.zip (631个子文件)
ui.theme.css 16KB
gallery.common.css 14KB
screen.css 8KB
screen.css 8KB
reset-fonts-grids.css 6KB
l10n_client.css 4KB
ui.datepicker.css 4KB
superfish.css 3KB
organize.css 3KB
gallery.css 2KB
upgrader.css 2KB
uploadify.css 2KB
user.css 2KB
ui.core.css 1KB
tag.css 1KB
ui.dialog.css 1KB
table.css 1KB
ui.resizable.css 993B
install.css 949B
jquery.autocomplete.css 827B
base-min.css 750B
comment.css 635B
ui.tabs.css 590B
server_add.css 528B
g2_import.css 505B
fix-ie.css 485B
debug.css 473B
organize_theme.css 458B
fix-ie.css 241B
ui.base.css 182B
ui.progressbar.css 169B
recaptcha.css 125B
uploadify.fla 123KB
loading-large.gif 8KB
broken-image.gif 2KB
loading-small.gif 673B
ico-separator.gif 106B
ico-separator-rtl.gif 106B
.htaccess 2KB
KohanaLicense.html 2KB
favicon.ico 1KB
module.info 223B
theme.info 213B
module.info 192B
theme.info 165B
module.info 119B
module.info 117B
module.info 110B
module.info 106B
module.info 99B
module.info 98B
module.info 96B
module.info 92B
module.info 91B
module.info 90B
module.info 87B
module.info 87B
module.info 81B
module.info 80B
module.info 75B
module.info 73B
module.info 60B
imagemagick.jpg 20KB
avatar.jpg 1KB
avatar.jpg 1KB
jquery-ui.js 135KB
jquery.js 56KB
swfupload.js 38KB
jquery.form.js 22KB
flowplayer.js 20KB
l10n_client.js 11KB
organize.js 11KB
swfobject.js 10KB
jquery.autocomplete.js 7KB
jquery.uploadify.min.js 7KB
jquery.jeditable.js 7KB
gallery.common.js 6KB
gallery.dialog.js 5KB
jquery.MultiFile.js 5KB
server_add.js 4KB
jquery.cookie.js 4KB
ui.init.js 4KB
superfish.js 4KB
swfupload.queue.js 3KB
gallery.show_full_size.js 2KB
gallery.panel.js 2KB
jquery.scrollTo.js 2KB
gallery.in_place_edit.js 2KB
password_strength.js 2KB
ui.init.js 2KB
jquery.localscroll.js 2KB
comment.js 1KB
digibug.js 1KB
albums_form_add.js 905B
gallery.ajax.js 427B
admin.js 204B
LICENSE 18KB
exif.php 44KB
g2_import.php 41KB
ORM.php 36KB
共 631 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
毕业_设计
- 粉丝: 1924
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功