How to convert an image object to a binary blob

后端 未结 1 655
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 07:05

Is it possible to parse an image object () in the DOM as if it had been uploaded and opened with FileReader? I am trying to use jpegmeta.js to extrac

相关标签:
1条回答
  • 2020-12-30 07:37

    The general consensus seems to be summed up in this answer: Get image data in JavaScript?

    So if you need the exif data, you'll need to use the XHR technique. Hopefully the browser will have the image cached, so it won't be too much of a performance hit. Otherwise the canvas technique should do the job.

    0 讨论(0)
提交回复
热议问题