@xuda.io/ai_module 1.1.4526 → 1.1.4527
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -7063,10 +7063,8 @@ const save_drive_file_to_disk = async function (drive_file) {
|
|
|
7063
7063
|
const imageBuffer = Buffer.from(arrayBuffer);
|
|
7064
7064
|
|
|
7065
7065
|
const tempDir = os.tmpdir();
|
|
7066
|
-
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
7067
7066
|
|
|
7068
|
-
const
|
|
7069
|
-
const tempInputPath = path.join(tempDir, `input_${uniqueId}${inputExt}`);
|
|
7067
|
+
const tempInputPath = path.join(tempDir, drive_file.filename);
|
|
7070
7068
|
// const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`); // Output is always PNG (transparent)
|
|
7071
7069
|
|
|
7072
7070
|
// 5. Write the downloaded image to disk
|