perf(booth): optimize assets and result flow

WebP reduces UI payload; JPEG keeps portrait saves compatible.\nFinish ends the visit without prompting another portrait.
This commit is contained in:
Ajasra committed 2026-10-30 00:00:16 +08:00
1 parent 56da9c86d2
commit 6772e0cf37
41 files changed
+225 -97

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ export async function applyWatermarkToFile(filePath: string): Promise<void> {
try {
const baseDir = process.cwd();
const logoPath = path.join(baseDir, "public", "assets", "brand", "shanghai_karate_logo.png");
const logoPath = path.join(baseDir, "public", "assets", "brand", "shanghai_karate_logo.webp");
const qrPath = path.join(baseDir, "public", "assets", "brand", "dojo_qr.png");
const baseImage = sharp(filePath);