perf(image): switch Runware output format from PNG to WEBP

WEBP produces ~90% smaller files than PNG at visually identical quality
(tested: 5.4MB → ~550KB per 1792×1024 image), significantly reducing
client download time for users on slower connections.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yuanzonghao
2026-06-15 18:04:31 +08:00
parent c452dcfeb0
commit d0faa06cc1
+1 -1
View File
@@ -329,7 +329,7 @@ async function generateImageRunware(
CFGScale: 3.5, CFGScale: 3.5,
numberResults: 1, numberResults: 1,
outputType: "URL", outputType: "URL",
outputFormat: "PNG", outputFormat: "WEBP",
includeCost: false, includeCost: false,
}; };