18

Is there any way to read the metadata of an image file in an <img> tag using JavaScript?

Marius Schulz
  • 15,976
  • 12
  • 63
  • 97
Alex
  • 209
  • 1
  • 2
  • 5
  • 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 (e.g. tiff, aux, xmp, etc) metadata stored in an image file. – Kelvin Aitken Jan 30 '21 at 20:06
  • 1
    Which metadata? – Quentin Nov 23 '21 at 10:53

1 Answers1

2

No. You would have to download the image (e.g. using XmlHttpRequest) and parse the image yourself.

Oswald
  • 31,254
  • 3
  • 43
  • 68
  • 2
    i dont understand why this was down voted, this is a direct answer, the above answer references a library that essentially does THIS – Ayyash Nov 20 '20 at 19:53
  • 1
    This answer feels rather: https://knowyourmeme.com/memes/how-to-draw-an-owl – Quentin Apr 19 '22 at 09:06