Pulls all the player photos from a Sidearm Stats roster page and automatically removes their background.
node main.js [sidearm-roster-url] [output-folder] [options]
Option | Description |
---|---|
-s |
Slow mode. When enabled, all downloads and image processing will happen consecutively. When disabled, all downloads and image processing will happen concurrently. Enabling slow mode will save resources but may take longer. |
-a=# |
Alpha filtration level. Higher numbers will result in more of the background being removed from fuzzy edges (e.g. hair), but may result in imperfections. Higher numbers may result in longer processing times. |
- Install rembg and add it to your path.
- Run
npm install
- Python 3.9
- Node 16.10.0