imgly/background-removal-js

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

itduotai opened this issue · 2 comments

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

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 ?

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.