0

I'm trying to go through PNG files pixel by pixel. The data I'm using looks like this: data:image/png;base64,iVBORw0KGgoAAAANSUh....

Following this question, I had no success. The accepted solution fails at var png = new PNG(data); and gives the error Uncaught TypeError: Cannot create property 'checkCRC' on string. The other answer fails at const png = new PNGReader(bytes); because Module not found: Can't resolve 'png.js' How do I fix either one of these issues?

L.P.
  • 3
  • 1

0 Answers0