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
- Host: GitHub
- URL: https://github.com/baslr/node-ppm-bin
- Owner: baslr
- Created: 2014-02-13T11:00:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T11:42:52.000Z (over 12 years ago)
- Last Synced: 2025-06-20T16:52:55.773Z (about 1 year ago)
- Language: CoffeeScript
- Size: 129 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```