Image to Blob is a simple utility that will convert images to blobs this can be used for urls to images, that are not cross domain, and IMG DOM node. Its intended to be used with Browserify.
Install
$ npm install image-to-blob
Example Usage
var imageToBlob = foo = document DOMURL = windowURL || windowwebkitURL || window; { if err console; return; console; var img = document; imgsrc = DOMURL; documentbody; } ;;
This will convert SVG images to pngs.