An open API service indexing awesome lists of open source software.

https://github.com/baslr/node-ppm-bin

Portable pixmap Binary to png converter
https://github.com/baslr/node-ppm-bin

Last synced: 12 months ago
JSON representation

Portable pixmap Binary to png converter

Awesome Lists containing this project

README

          

node-ppm-bin
============

Portable pixmap Binary to png converter.

Supports Magic Number P6. Produced by qemu qmp command:

```
screendump
----------

Save screen into PPM image.

Arguments:

- "filename": file path (json-string)

Example:

-> { "execute": "screendump", "arguments": { "filename": "/tmp/image" } }
<- { "return": {} }
```

usage:

```
ppmbin = require 'ppm-bin'

ppmbin.convert 'image.ppm', 'image.png', (err) ->
console.log err
```