首先,在主题文件functions.php加入下面的代码:
function photo($atts, $content=null){$exif = exif_read_data(''.$content.'', 0, true);return "<br />\n"."<strong>[器材]</strong> ".$exif[IFD0][Make].$exif[IFD0][Model]."<br />\n"."<strong>[参数]</strong> "."光圈:".$exif[COMPUTED][ApertureFNumber]." 快门:".$exif[EXIF][ExposureTime]." 焦距:".$exif[EXIF][FocalLength]."mm"." ISO:".$exif[EXIF][ISOSpeedRatings]." 拍摄日期:".$exif[EXIF][DateTimeOriginal];}
然后编辑主题文件的style.css加入下面css样式:
.exif {background: #FFD;height: 50px;font-size: 12px;line-height: 16px;border: 1px solid #999;border-left: 4px solid #600;margin: 2px 0;padding: 4px;}
调用格式:
<div class="exif">[pho]http://图片地址[/pho]</div>
上面是wordpress显示照片EXIF信息的方法。怎么移植过来X1???大佬们有什么方法吗?
X1 上传的图片是经过了压缩 已经没有了Exif信息
https://www.cnblogs.com/trying/archive/2013/03/21/2972584.html
http://developer.51cto.com/art/201207/346157.htm
这里有两个地址是说jQuery.Exif的,大佬们能不能弄个插件给大家购买啊。