image2base64

Convert an Image to a base64 string in the browser

npm install image2base64
1 downloads in the last day
1 downloads in the last week
8 downloads in the last month

Image2Base64

Transform an image to base64 in the browser.

Usage

You can use it via browserify and npm or the old school way.

var rslt = Image2Base64(myImage);

it may throw a SecurityError if the image doesn't support CORS.

Build example

cd example
npm install
npm run build
`

TODO

  • tests
npm loves you