background-removal-js icon indicating copy to clipboard operation
background-removal-js copied to clipboard

I am using it in an offline environment. May I know how to configure it

Open itduotai opened this issue 2 years ago • 2 comments

I am using it in an offline environment. May I know how to configure it

itduotai avatar Oct 18 '23 02:10 itduotai

Can you please be more specific? Which package?

Have you checked out the documentation on custom asset serving: https://github.com/imgly/background-removal-js/tree/main/packages/node#custom-asset-serving ?

DanielHauschildt avatar Nov 06 '23 09:11 DanielHauschildt

Hi, please, could you help me. I want to use saved assets instead of downloading it. I stored it into assets/ai/. I tried this:

let config: Config = {};
config.publicPath = "./assets/ai/";
removeBackground(this.selImage, config).then(async (blob: Blob) => {

....

And what files should I copy into assets/ai/? What should I put into assets/ai/resources.json?

Thank you.

zavovi avatar Dec 13 '23 11:12 zavovi