JavaScript implementation of Depixelizing Pixel Art from http://research.microsoft.com/en-us/um/people/kopf/pixelart/