/SwitchBackground

Small NodeJs script that replaces the background of an image with any given one

Primary LanguageJavaScript



SwitchBackground

Change the background of images

SwitchBackground is a tool to automatically change the background of an image.

Usage

Parameters for CLI

Every method of running this tool uses 3 main parameters:

  • Entry image

    Path to the image which the background you want to change. Example: "antman.jpg".
    Default: "default_img.jpg".



    Default_img
  • Background image

    Path to the new background. Example: "thanos_ass.jpg".
    Default: "default_bg.jpg".



    Default_bg
  • Position

    Position of the foreground image relative to the background Default: center.

Example of usage

``` 
npm start "antman.jpg" "thanos_ass.jpg"
```

General Results



Default_bg

License

MIT

Creator

Carlos VinĂ­cius Monteiro Costa

    Brazilian Programmer specialized in memes and weekly shenanigans involving node, computer vision and anything web related.