Sunday, May 4, 2008 29 comments Compression using Canvas and PNG-embedded data Labels: canvas, compression, javascript I got this idea to stuff Javascript in a PNG image and then read it out using the getImageData() method on the canvas element. Unfortunately, for now, that means only Firefox, Opera Beta and the recent WebKit nightlies work. And before anyone else points out how gzip is superior,