JS PNG on GitHub
In a continuing effort to make KevLinDev code more accessible, I’ve moved the JS PNG project to GitHub: JS-PNG. Quite honestly, I don’t recall why I even wrote this code. Most likely, it was just a curiosity to see if it could be done.
I was contacted by Paul Kienzle (sorry, no link), who is using this code for client-side rendering when other options (like canvas) are not available to him. He has made a number of optimizations which I hope he will be able to get up on GitHub, either in “master” or in a fork.
To give you an idea of Paul’s speed improvements, he’s seen original speeds of 1.8s for a 400×400 plot drop down to 0.25s. Amazing! However, it turns out that the actual decoding step performed by some browsers becomes the bottleneck. I would not have expected that.