How to extract local image metadata in Javascript?

I would like to receive metadata of the image which the user drags and gets on the web page. I have a drag and drop. However, the image is not actually uploaded to the server. It was available locally. Can I get metadata from an image using Javascript? If so, how do I do this? What good libraries exist?

If not, do I need to upload an image to extract metadata? What is the fastest way to load an image in javascript?

+4
source share
2 answers

There is a library: ImageInfo - read image metadata using JavaScript . Meanwhile, local access to files in HTML5 you can get it.

UPDATE New link for imageinfo library .

+3
source

Basically, JavaScript cannot “touch” your local file; you can do this using HTML5 + JavaScript or using Flash ActionScript

-4
source

Source: https://habr.com/ru/post/986075/


All Articles