imagejs/imagejs.github.com — pull request #15 by agrueneberg (2012-04-12 15:13:31+00:00)
Title: Fix crash related to toDataURL on certain images.

canvas.toDataURL crashes for certain images and there doesn't seem to be a way to fix that. An alternative is to use canvas.toBlob, however, it requires a different way to save the file. I decided to use the simple FileSaver API.
Neither canvas.toBlob nor the FileSaver API are currently natively supported in Chrome, but polyfills exist.