@xuda.io/account_module 1.2.269 → 1.2.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1577,7 +1577,7 @@ const removeBg = async function (req, job_id, headers) {
|
|
|
1577
1577
|
const arrayBuffer = await res.arrayBuffer();
|
|
1578
1578
|
imageBuffer = Buffer.from(arrayBuffer);
|
|
1579
1579
|
}
|
|
1580
|
-
const blob = await removeBackground(imageBuffer);
|
|
1580
|
+
const blob = await removeBackground(imageBuffer, config);
|
|
1581
1581
|
|
|
1582
1582
|
// Convert to buffer and save
|
|
1583
1583
|
const outputBuffer = Buffer.from(await blob.arrayBuffer());
|