如何从文件(图像)获取详细信息(属性)。 [英] How can I get details(properties) from file(image).

查看:63
本文介绍了如何从文件(图像)获取详细信息(属性)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是Angular 2+的新手,当用户从UI上传图像文件时,尝试检索细节或优先级。标题,评论,作者,相机细节等属性是否有GPS Latlong?等等。



请帮帮我。谢谢



我尝试过:



Hi,
I am new for Angular 2+ and try to retrieve the details or priorities when the user uploaded the image file from UI. properties like Title, comment, author, camera details and does it has GPS Latlong? and etc.

Please help me. Thanks

What I have tried:

var name = event.target.files[i].name;
var type = event.target.files[i].type;
var size = event.target.files[i].size;
var modifiedDate = event.target.files[i].lastModifiedDate;

推荐答案

引用:

问题是,除了它之外无法找到其他属性。喜欢标题,评论,作者,相机细节,它有GPS Latlong吗?等等。

the problem is, unable to found other properties apart from it. like Title, comment, author, camera details and does it has GPS Latlong? and etc.



你要找的是EXIF数据: EXIF数据说明|摄影疯狂 [ ^ ]

这可以帮到你: GitHub - exif-js / exif-js:用于阅读EXIF的JavaScript库图像元数据 [ ^ ]


这篇关于如何从文件(图像)获取详细信息(属性)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆