# gm-to-grayscale

> Use `gm` to read an RGB buffer/image and make it grayscale

Latest version **0.1.0** (published 2014-03-14) · 0 weekly downloads

## Install

```sh
npm install gm-to-grayscale
pnpm add gm-to-grayscale
yarn add gm-to-grayscale
bun add gm-to-grayscale
```

Provides the command `gm-to-grayscale`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-03-14 |
| First published | 2014-03-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Maciej Małecki |
| Maintainers | mmalecki |
| Keywords | rgb, grayscale, gm, image |

## Links

- npm: https://www.npmjs.com/package/gm-to-grayscale
- npm.io page: https://npm.io/package/gm-to-grayscale

## Dependencies (2)

- [gm](https://npm.io/package/gm.md) ^1.14.2
- [temp](https://npm.io/package/temp.md) ^0.7.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-03-14

## README

# gm-to-grayscale
Use `gm` to read an RGB buffer/image and make it grayscale.

## Installation
```sh
npm install gm-to-grayscale
```

## Usage

```js
#!/usr/bin/env node
var gmToGrayscale = require('gm-to-grayscale');

gmToGrayscale('my-photo.png'), function (err, result) {
  if (err) {
    throw err;
  }

  console.log('Image size: ' + result.width + 'x' + result.height);

  fs.writeFile('my-photo.gray', result.image, function (err) {
    if (err) {
      throw err;
    }
  });
});
```

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