简体   繁体   English

使用javascript从图像文件中读取元数据

[英]Read meta data from image file with javascript

有没有办法使用 JavaScript 读取<img>标签中图像文件的元数据?

I think this tool is what you're looking for:我认为这个工具就是你要找的:

https://github.com/exif-js/exif-js https://github.com/exif-js/exif-js


defunct (might be able to find with wayback machine or equivalent): http://blog.nihilogic.dk/2008/08/imageinfo-reading-image-metadata-with.html已不存在的(可能可以使用回程机或同等设备找到): http : //blog.nihilogic.dk/2008/08/imageinfo-reading-image-metadata-with.html

None of the above answers answer the question.以上答案都没有回答这个问题。 Exif is just part of the metadata. Exif 只是元数据的一部分。 The package suggested only accesses exif meta data, not all the other (eg tiff, aux, xmp, etc) metadata stored in an image file.该包建议只访问 exif 元数据,而不是存储在图像文件中的所有其他(例如 tiff、aux、xmp 等)元数据。

不可以。您必须下载图像(例如使用 XmlHttpRequest)并自己解析图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM