Seeking removeImageBackground Windows command line source
Copy link to clipboard
Copied
Yes, I'm a novice JS person here. I'm a developer, but have very little experience with Javascript and running on Windows 11. I'm attempting to remove the background for a number of image files and would like to automate it with a nice command line tool. I downloaded node.js today version v18.16.1 and have been trying to follow the online getting started guide (Quickstart Guide (adobe.com)) , but have run into one syntax error after another. Below is the code I copied from the Adobe website and run it via node removeImageBackground.js and I keep getting error "Only URLS with a scheme in: file and data are supported by the default ESM loader. Received protocol 'https'". I would like to figure out how to initialize the SDK without errors and then plan to go to step 2 and write the embed actions for removing the background. If there is an easier way to automate this, I'm all ears. Thank you in advance for your guidance.
// import the SDK from the CDN URL var CDN_URL = "https://sdk.cc-embed.adobe.com/v2/CCEverywhere.js"; (async () => { await import(CDN_URL); // initialize the SDK with your credentials and app info const ccEverywhere = await window.CCEverywhere.initialize({ clientId: "8546b83f33ca492487a6f8a250602fca", appName: "Project1", appVersion: { major: 1, minor: 0 }, platformCategory: "web", }); // use the SDK methods here })();
Copy link to clipboard
Copied
Hi @Harry Grinling --
Thanks for sharing your use case. The Adobe Express Embed SDK is designed for use with web applications.
The code you shared won't work --- instead I would set up a small web application. Additionally, you will need to run the app with https in order to successfully use the SDK.
More importantly, v2 of the SDK is going to be deprecated sometime this year and I strongly encourage that you use the newest version of the SDK (still in beta). If you can share a valid Github username with me, I can add you to the private documentation.
Please email me amandah@adobe.com if you want to discuss this in more detail.

