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:
1 parent
56da9c86d2
commit
6772e0cf37
41 files changed
+225
-97
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user