original:

how to use

get pixelator.js

include it like this

then add

and

<img src="myImage.png"  class="pixelated"></img>

note: if a local copy of the webpage is opened with chrome, there will be a security error. it's necessary to upload it to a server to test it in chrome.