1.0.9 • Published 2 years ago

rembg-nodejs v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Installation

  • install python
  • install pytorch
  • install rembg tool
  • install node js
  • npm i rembg-nodejs

how to use ?

const {folder, file, link} = require('rembg-nodejs');

async function run () {
	// if you want to convert image file
	await file('./output','./input.jpeg', (res) => console.log(res));

	// convert images in folder
	await folder('./output_folder','./input_folder', (res) => console.log(res));
	
	// convert from url
	await link('http://example/image.jpg','./output.png', (res) => console.log(res));
}

run();
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago