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
})();
...その他を表示