Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -309,7 +309,7 @@ async function processImages(imgList, tempDir, instanceID) {
|
|
| 309 |
const imagePath = await downloadImage(imgList[i], tempDir, instanceID);
|
| 310 |
partImages.push(imagePath);
|
| 311 |
|
| 312 |
-
if (await getTotalHeight(partImages) >
|
| 313 |
await combineAndSave(partImages, partIndex, tempDir);
|
| 314 |
partImages = [];
|
| 315 |
partIndex++;
|
|
|
|
| 309 |
const imagePath = await downloadImage(imgList[i], tempDir, instanceID);
|
| 310 |
partImages.push(imagePath);
|
| 311 |
|
| 312 |
+
if (await getTotalHeight(partImages) > 20000) { // Membatasi tinggi total gambar gabungan
|
| 313 |
await combineAndSave(partImages, partIndex, tempDir);
|
| 314 |
partImages = [];
|
| 315 |
partIndex++;
|