rembg-nodejs

1.0.9 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i rembg-nodejs

    Weekly Downloads

    1

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    1.86 kB

    Total Files

    3

    Last publish

    Collaborators

    • chicken.alesha