Compare commits

...

1 Commits

Author SHA1 Message Date
mrkad@rpi
25825b480c feat: adjust photo capture effects and improve image quality in ShootingView 2026-01-27 16:46:34 +07:00

View File

@@ -271,14 +271,14 @@ const captureSinglePhoto = () => {
if (filter === 'black&white') { if (filter === 'black&white') {
applyBlackAndWhite(context, finalWidth, finalHeight, 3); applyBlackAndWhite(context, finalWidth, finalHeight, 3);
} else { } 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 เพื่อลดขนาด // แปลงเป็น base64 ด้วย quality 0.7 เพื่อลดขนาด
const photoDataUrl = canvas.toDataURL('image/jpeg', 0.7) const photoDataUrl = canvas.toDataURL('image/jpeg', 0.8)
photos.value.push(photoDataUrl) photos.value.push(photoDataUrl)
currentPhotoIndex.value++ currentPhotoIndex.value++
@@ -525,6 +525,7 @@ const retakePhoto = () => {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
transform: scaleX(-1);
} }
.hidden-canvas { .hidden-canvas {