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.
If I understand you correctly, you could use this library to generate qrcodes:
http://www.onlineqrlab.com/js_doc.php
Haven't tried it, but it seems well documented
Edit: This is a very old answer (9yrs+! O.o), so the link above now returns a 404. See web.archive.org: https://web.archive.org/web/20201029134734/http://onlineqrlab.com/js_doc.php
See also the qrcoder
npm package for generating QR codes.