Doesn't work on Safari on Yosemite, as Apple seems to have fixed/broken their JPEG decoder, usually can't display glitched images.<p>I had a similar problem in an app I'm working on and I had to use libjpeg for the decoding, not sure if there are ways to handle it in JS...<p>PS. but it's a cool idea :)
It's interesting to see this in JS. For a comparison I was playing with JPEG glitching a while back but in Go... <a href="http://jamesduncombe.com/whats-brewing/jpeg-crush/" rel="nofollow">http://jamesduncombe.com/whats-brewing/jpeg-crush/</a>