I need to get the Huffman coding for the <img>
in html, I have a JavaScript function that generates Huffman coding and it takes a string as input, so I need to convert the image in the <img>
into a string somehow, get the Huffman coding and output it in the html.
My problem converting the <img>
to a string, I've searched a lot but I still don't know how to proceed