【发布时间】:2020-03-01 16:02:18
【问题描述】:
我正在使用来自here 的 exif.js。
我目前使用EXIF.getData()从我的img中提取了所有数据,并将其显示在我的图片旁边。
但现在我想显示的不是所有数据,而是要具体说明什么(相机型号、拍照日期、图片是否有标签等)。
我的图片是我的 JSON 文件,我已经为所有图片添加了标签。 我不知道如何处理它。我应该使用 EXIF.getData() 并从那里开始吗?我在模态对话框中提取 IMG 点击数据。
function clickImage(){
let images = $(".box img");
images.click(function() {
modalContent.attr('src', $(this).attr('src'));
modalView.css('display', 'block');
googleMap.css('display','none');
EXIF.getData(this, function() {
result.text(EXIF.pretty(this))
}
}
目前,我在result中给出了所有日期。
【问题讨论】:
-
到目前为止,我已经做到了:
标签: javascript exif