imgly / background-removal-js

Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
https://img.ly/showcases/cesdk/web/background-removal/web
GNU Affero General Public License v3.0
5.7k stars 357 forks source link

Vanilla JS compatible ? #122

Open AdemIssadWytopia opened 4 months ago

AdemIssadWytopia commented 4 months ago

Is it possible to make it work on vanilla JS ? Can't find anything about it in the doc

bleeptrack commented 1 month ago

Hey, just stumbled upon your issue. I got it working for a quick test via CDN: import { removeBackground } from 'https://cdn.jsdelivr.net/npm/@imgly/background-removal@1.5.5/+esm' and then just call removeBackground instead of imglyRemoveBackground.