@xuda.io/ai_module 1.1.4447 → 1.1.4448

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.
Files changed (2) hide show
  1. package/index.mjs +1 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6594,11 +6594,7 @@ async function normalizeBase64To1024(
6594
6594
  const inputBuffer = Buffer.from(base64Image, 'base64');
6595
6595
 
6596
6596
  const normalizedBuffer = await sharp(inputBuffer)
6597
- .resize(1024, 1024, {
6598
- fit: 'inside', // Scale up/down to fit inside 1024×1024 while preserving aspect ratio
6599
- withoutEnlargement: false, // Allow enlargement if original is smaller
6600
- background: { r: 0, g: 0, b: 0, alpha: 0 }, // Still transparent padding
6601
- })
6597
+ .resize(1024, 1024, resize)
6602
6598
  .png({
6603
6599
  quality: 98,
6604
6600
  compressionLevel: 8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4447",
3
+ "version": "1.1.4448",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",