简体   繁体   中英

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


defunct (might be able to find with wayback machine or equivalent): 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. The package suggested only accesses exif meta data, not all the other (eg tiff, aux, xmp, etc) metadata stored in an image file.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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