fix png compression

This commit is contained in:
Madison Grubb
2025-09-04 23:02:28 -04:00
parent f0e9ebccb9
commit 714d0351ea
3 changed files with 2 additions and 32 deletions

View File

@@ -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) {