I have some arbitrary pixel data that I want to save as a PNG. How can I encode a PNG with JavaScript to accomplish this?
The data is a series of 1's and 0's that I want to use to create a QR code. It's QR code arbitrary data
I'm not using the DOM, so jQuery and createElement's are out.
http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
Or encode it directly to a PNG with pure javascript (no canvas required):
https://github.com/IjzerenHein/pnglib-es6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With