From 25825b480cb8f390bf7eb9f9a9fc34a8d7a639bc Mon Sep 17 00:00:00 2001 From: "mrkad@rpi" Date: Tue, 27 Jan 2026 16:46:34 +0700 Subject: [PATCH] feat: adjust photo capture effects and improve image quality in ShootingView --- src/views/ShootingView.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/ShootingView.vue b/src/views/ShootingView.vue index 1c8e7cf..a942ddb 100644 --- a/src/views/ShootingView.vue +++ b/src/views/ShootingView.vue @@ -271,14 +271,14 @@ const captureSinglePhoto = () => { if (filter === 'black&white') { applyBlackAndWhite(context, finalWidth, finalHeight, 3); } else { - applyFilmEffect(context, finalWidth, finalHeight, 5); // Default volume = 5 + applyFilmEffect(context, finalWidth, finalHeight, 2); // Default volume = 5 } - drawDateStamp(context, finalWidth, finalHeight); + // drawDateStamp(context, finalWidth, finalHeight); // แปลงเป็น base64 ด้วย quality 0.7 เพื่อลดขนาด - const photoDataUrl = canvas.toDataURL('image/jpeg', 0.7) + const photoDataUrl = canvas.toDataURL('image/jpeg', 0.8) photos.value.push(photoDataUrl) currentPhotoIndex.value++ @@ -525,6 +525,7 @@ const retakePhoto = () => { width: 100%; height: 100%; object-fit: cover; + transform: scaleX(-1); } .hidden-canvas {