Lightning.gs allows users to upload an image, shrink it and then create a data URI. Built on backbone.js with a JavaScript port of PngCrush.