0.0.3 • Published 2 years ago

node-gimp v0.0.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 years ago

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);