node-gimp

0.0.3 • Public • Published

node-gimp

Send Script-Fu commands from Node.js to GIMP. Can be used to set colors, create text or layers, run filters, you name it.

@todo insert cool video

Usage

// my-cool-program.js

import Gimp from 'node-gimp';


(async function main() {
	const gimp = new Gimp();
	const res = await gimp.sendCommand('(gimp-image-list)');
	console.log(res); // => "(1 #(1))"
})();

The Gimp() constructor can be passed options.

const options = {
	port: 38483,         // defaults to 10008
	responseTimeout: 100 // defaults to 1000
};
const gimp = new Gimp(options);

Package Sidebar

Install

npm i node-gimp

Weekly Downloads

2

Version

0.0.3

License

Unlicense

Unpacked Size

23 kB

Total Files

10

Last publish

Collaborators

  • grimtech