MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / readImage

Function readImage

assets/js/TextExtraction.js:26–34  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

24}
25
26function readImage(file) {
27 const reader = new FileReader();
28 reader.addEventListener("load", (event) => {
29 img.src = event.target.result;
30 console.log(img);
31 });
32
33 reader.readAsDataURL(file);
34}

Callers 1

TextExtraction.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected