Skip to content
/ removebg Public

A Golang API wrapper for removing background using remove.bg's API

License

Notifications You must be signed in to change notification settings

g-lib/removebg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

removebg

A Golang API wrapper for removing background using remove.bg's API

License

This code is licensed under the GPL3 License. See here for more details.

Installation

go get github.com/g-lib/removebg@latest

Usage

RemoveFromFile

Removes the background given an image file.

Code Example:

import "github.com/g-lib/removebg"
rmbg = NewRemoveBg("YOUR-API-KEY")
rmbg.RemoveFromFile("test.jpg",nil)

RemoveBackgroundFromImgURL

Removes the background given an image URL.

Code Example:

import "github.com/g-lib/removebg"
rmbg = NewRemoveBg("YOUR-API-KEY")
rmbg.RemoveFromURL("http://www.example.com/some_image.jpg",nil)

RemoveBackgroundFromBase64Img

Removes the background given a base64 image string.

Code Example:

import "github.com/g-lib/removebg"
rmbg = NewRemoveBg("YOUR-API-KEY")
rmbg.RemoveFrombBase64("BASE64-CONTENT",nil)

About

A Golang API wrapper for removing background using remove.bg's API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages