node-red-contrib-buffer-to-png
v4.0.0
Published
[Node-RED](http://nodered.org) node to convert a buffer to png.
Downloads
5,223
Readme
node-red-contrib-buffer-to-png
Convert a buffer to a png
Install
Run the following command in the root directory of your Node-RED install:
npm install node-red-contrib-buffer-to-png
or from Manage Palette, search node-red-contrib-buffer-to-png.
Usage
This node should be provided in input :
msg.buffer
: the buffer to convert. Format: Buffer.msg.filename
: the filename for the png file. Format: String.
This node will give an output in msg.payload
, with the keys: :
png
: the converted buffer into Jimp png instance. Format: Jimp png instance.png_buffer
: the converted Jimp png instance into buffer. Format: Buffer.png_url
: the url where the .png file was saved. Format: String.png_url_path
: the url of the folder where the .png file was saved. Format: String.png_filename
: the filename of the saved .png file. Format: String.
Contributing
For simple typos and fixes please just raise an issue pointing out our mistakes. If you need to raise a pull request please read our contribution guidelines before doing so.
Copyright and license
Copyright 2022 IBM Corp. under the Apache 2.0 license.