Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 358 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 358 Bytes

gm-base64

A plugin for gm node module, which converts img to base64 string

Installation

$ npm install gm-base64

Usage

var gm = require('gm');
require('gm-base64');

gm('a.jpg')
  .resize(384)
  .toBase64('bmp', function(err, base64){
    console.log(base64);
  });

License

The MIT License