# gm-base64

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

Latest version **1.1.1** (published 2017-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install gm-base64
pnpm add gm-base64
yarn add gm-base64
bun add gm-base64
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-06-16 |
| First published | 2016-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | didikeke |
| Maintainers | didikeke |
| Keywords | gm, ImageMagick, GraphicsMagick, base64 |

## Links

- npm: https://www.npmjs.com/package/gm-base64
- Repository: https://github.com/didikeke/gm-base64
- Homepage: https://github.com/didikeke/gm-base64#readme
- Issues: https://github.com/didikeke/gm-base64/issues
- npm.io page: https://npm.io/package/gm-base64

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2017-06-16
- 1.1.0 — 2017-06-16
- 1.0.0 — 2016-04-09
- 0.0.1 — 2016-04-03

## README

# gm-base64

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

## Installation

    $ npm install gm-base64

## Usage

With DataUri:

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

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

```


Without DataUri:
```
var gm = require('gm');
require('gm-base64');

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

```

## License

[The MIT License](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/gm-base64 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
