@xuda.io/ai_module 1.1.4445 → 1.1.4446
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 +5 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6470,6 +6470,11 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
6470
6470
|
prompt = `find "${name}" icon/logo, Return only png,jpg image url single result e.g: "https://example.com/logo_image.png", nothing else`;
|
|
6471
6471
|
factual_prompt = `create logo for the company named: "${name}" the logo should only be initials of the name or geometric shape`;
|
|
6472
6472
|
originalname = normalizeFilename(name) + '_xu_logo.png';
|
|
6473
|
+
resize = {
|
|
6474
|
+
fit: 'cover', // Fill the 1024×1024 area (may crop edges)
|
|
6475
|
+
position: 'centre', // Center the crop
|
|
6476
|
+
background: { r: 0, g: 0, b: 0, alpha: 0 },
|
|
6477
|
+
};
|
|
6473
6478
|
break;
|
|
6474
6479
|
}
|
|
6475
6480
|
|