fix png compression
This commit is contained in:
@@ -2,7 +2,6 @@ import path from "path";
|
||||
import { mkdir, writeFile } from "fs/promises";
|
||||
import { fileURLToPath } from "url";
|
||||
import { callOllama } from "./ollamaClient.js";
|
||||
import { compressPng } from "./compressPng.js";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const COMFYUI_URL = process.env.COMFYUI_URL || "http://localhost:8188";
|
||||
@@ -182,9 +181,6 @@ async function generateImageViaComfyUI(prompt, filename) {
|
||||
|
||||
console.log("Downloading image...");
|
||||
const filepath = await downloadImage(comfyFilename, filename);
|
||||
|
||||
console.log("Compressing PNG...");
|
||||
await compressPng(filepath);
|
||||
return filepath;
|
||||
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user