php exif 扩展
服务器配置说明: 1.在php.ini文件中找到;extension=php_exif.dll,去掉前面的分号 2.在php.ini文件中找到;extension=php_mbstring.dll,去掉前面的分号,并将此行移动到extension=php_exif.dll之前,使之首先加载*。 3.找到[exif]段,把下面语句的分号去掉。 ;exif.encode_unicode = ISO-8859-15 ;exif.decode_unicode_motorola = UCS-2BE ;exif.decode_unicode_intel = UCS-2LE ;exif.encode_jis = ;exif.decode_jis_motorola = JIS ;exif.decode_jis_intel = JIS不同的人可能需要不同的EXIF信息,下面这一段大家可以根据需要选用: "文件名" => $exif[FILE][FileName], "文件类型" => $imgtype[$exif[FILE][FileType]], 文件格式" => $exif[FILE][MimeType], "文件大小" => $exif[FILE][FileSize], "时间戳" => date("Y-m-d H:i:s",$exif[FILE][FileDateTime]), "图片说明" => $exif[IFD0][ImageDescription], "制造商" => $exif[IFD0][Make], "型号" => $exif[IFD0][Model], "方向" => $Orientation[$exif[IFD0][Orientation]], "水平分辨率" => $exif[IFD0][XResolution].$ResolutionUnit[$exif[IFD0][ResolutionUnit]], "垂直分辨率" => $exif[IFD0][YResolution].$ResolutionUnit[$exif[IFD0][ResolutionUnit]], "创建软件" => $exif[IFD0][Software], "修改时间" => $exif[IFD0][DateTime], "作者" => $exif[IFD0][Artist], "YCbCr位置控制" => $YCbCrPositioning[$exif[IFD0][YCbCrPositioning]], "版权" => $exif[IFD0][Copyright], "摄影版权" => $exif[COMPUTED][Copyright.Photographer], "编辑版权" => $exif[COMPUTED][Copyright.Editor], "Exif版本" => $exif[EXIF][ExifVersion], "FlashPix版本" => "Ver. ".number_format($exif[EXIF][FlashPixVersion]/100,2), "拍摄时间" => $exif[EXIF][DateTimeOriginal], "数字化时间" => $exif[EXIF][DateTimeDigitized], "拍摄分辨率高" => $exif[COMPUTED][Height], "拍摄分辨率宽" => $exif[COMPUTED][Width], "光圈" => $exif[EXIF][ApertureValue], "快门速度" => $exif[EXIF][ShutterSpeedValue], "快门光圈" => $exif[COMPUTED][ApertureFNumber], "最大光圈值" => "F".$exif[EXIF][MaxApertureValue], "曝光时间" => $exif[EXIF][ExposureTime], "F-Number" => $exif[EXIF][FNumber], "测光模式" => GetImageInfoVal($exif[EXIF][MeteringMode],$MeteringMode_arr), "光源" => GetImageInfoVal($exif[EXIF][LightSource], $Lightsource_arr), "闪光灯" => GetImageInfoVal($exif[EXIF][Flash], $Flash_arr), "曝光模式" => ($exif[EXIF][ExposureMode]==1?"手动":"自动"), "白平衡" => ($exif[EXIF][WhiteBalance]==1?"手动":"自动"), "曝光程序" => $ExposureProgram[$exif[EXIF][ExposureProgram]], "曝光补偿" => $exif[EXIF][ExposureBiasValue]."EV", "ISO感光度" => $exif[EXIF][ISOSpeedRatings], "分量配置" => (bin2hex($exif[EXIF][ComponentsConfiguration])=="01020300"?"YCbCr":"RGB"),//'0x04,0x05,0x06,0x00'="RGB" '0x01,0x02,0x03,0x00'="YCbCr" "图像压缩率" => $exif[EXIF][CompressedBitsPerPixel]."Bits/Pixel", "对焦距离" => $exif[COMPUTED][FocusDistance]."m", "焦距" => $exif[EXIF][FocalLength]."mm", "等价35mm焦距" => $exif[EXIF][FocalLengthIn35mmFilm]."mm",
转载于:https://www.cnblogs.com/lost-1987/articles/3262548.html
php exif 扩展相关推荐
- exif linux php扩展_LNMP环境为PHP添加exif扩展
在使用时 php报出如下错误: Call to undefined function gemvary\exif_imagetype() 好吧,exif扩展没安装... 通过 打印phpinfo() 查 ...
- FreeBSD 下载 Exif扩展
FreeBSD 下载 Exif扩展 背景:我在使用Intervention/image 处理图片时,发现有的图片旋转了90度,网上调查后,发现加上orientate就可以了 $img = Image: ...
- Centos+PHP模块+exif扩展 (第三方模块)
今日应开发需求,想要显示图片的属性信息,于是度娘就告知exif模块可以实现,操作步骤与问题总结吐下: php安装扩展的几种方法 注意 与Apache+PHP或者Nginx+PHP的运行模式不同,Wor ...
- 开通php exif,php下exif扩展对照片的支持
exif是一个读取图片meta data的扩展,可以很好的读取相机拍摄的照片. 支持以下方法: int exif_imagetype ( string $filename ) 判断一个图像的类型.可能 ...
- win2003服务器iis6.0环境下php5.3.2安装配置
IIS6+PHP5.3.2配置: 在windows下使用Apache+PHP的,请选择VC6版本: windows下使用IIS+PHP的,请选择VC9版本 首先要知道的是,那个服务器平台对应PHP那个 ...
- 生产环境LNMP (果图片)
一. 下载一键安装包 LNMP 官方地址为:http://lnmp.org/ 登陆后运行:screen -S lnmp cd /usr/local/src wget -c http://soft. ...
- 编译php ./configure命令enable和with有什么区别
./configure --enable-curl./configure --with-curl 1.enable和with参数命令有什么区别? 2.如何将扩展编译进php,而不是以.so动态扩展形式 ...
- php7插件开发,php7.2.6 插件fileinfo的安装
1.首先,找到扩展的位置,将php-7.2.6.tar.bz2解压后在其ext/fileinfo处, tar -xvf php-7.2.6.tar.bz2 2.cd 到该位置(根据自己的具体情况来) ...
- php精准函数,PHP常用函数大全
PHP随机图片API本地图片版,页面直接输出图片<?php $img_array = glob('images/*.{gif,jpg,png,jpeg,webp,bmp}', GLOB_BRAC ...
- arcengine-栅格数据详解
打开栅格数据工作空间 //Open a file geodatabase workspace as RasterWorkspace. static IRasterWorkspaceEx OpenFGD ...
最新文章
- 转 [JAVA] 使用 common-fileupload 实现文件上传
- 标准W3C盒子模型和IE盒子模型CSS布局经典盒子模型(转)
- Mac-连接Windows远程桌面软件
- 初识WebSocket
- The Intelligent Investor Feedback
- Deep learn toolbox:CNN BP求导解析
- axis2 java.net.url_axis,axis2调用.net的webservice
- 《SpringBoot揭秘 快速构建微服务体系》读后感(三)
- POJ 1442 Black Box(大小堆,求第K小的元素)
- 一句简单命令重启nginx
- MySQL之在储存过程中使用表名为变量
- 今年暑假不ac (c语言版)
- c语言串口接收的字符转int,从串口发送和接收int值
- iOS App常用的宏
- excel 如何根据身份证号自动匹配性别代码
- SharePoint 2019 图文安装教程
- Go开发的程序如何使用加密狗保护
- 无惧断电 小苏云“同城三机房”容灾演练成功
- 「硬核JS」一次搞懂JS运行机制
- python OOP面向对象笔记