From 00710b5078a0376bd65a486e079be166c5c7dff8 Mon Sep 17 00:00:00 2001 From: Onkar Jadhav Date: Sat, 3 Feb 2024 14:15:26 +0530 Subject: [PATCH 1/3] Improve resolution of webcam images --- src/Components/Patient/FileUpload.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Patient/FileUpload.tsx b/src/Components/Patient/FileUpload.tsx index 02de804f162..02d5551e477 100644 --- a/src/Components/Patient/FileUpload.tsx +++ b/src/Components/Patient/FileUpload.tsx @@ -172,8 +172,8 @@ export const FileUpload = (props: FileUploadProps) => { const [previewImage, setPreviewImage] = useState(null); const [facingMode, setFacingMode] = useState(FACING_MODE_USER); const videoConstraints = { - width: 1280, - height: 720, + width: { ideal: 4096 }, + height: { ideal: 2160 }, facingMode: "user", }; const { width } = useWindowDimensions(); @@ -1164,10 +1164,10 @@ export const FileUpload = (props: FileUploadProps) => { {!previewImage ? (
From 98a7430d36d19c62850ed0042f98f27526e3f56e Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 6 Feb 2024 18:45:23 +0530 Subject: [PATCH 2/3] replicate changes in cover image --- src/Components/Facility/CoverImageEditModal.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Facility/CoverImageEditModal.tsx b/src/Components/Facility/CoverImageEditModal.tsx index 8de463ad9b5..4edc389f794 100644 --- a/src/Components/Facility/CoverImageEditModal.tsx +++ b/src/Components/Facility/CoverImageEditModal.tsx @@ -47,8 +47,8 @@ const CoverImageEditModal = ({ const FACING_MODE_ENVIRONMENT = { exact: "environment" }; const [facingMode, setFacingMode] = useState(FACING_MODE_USER); const videoConstraints = { - width: 1280, - height: 720, + width: { ideal: 4096 }, + height: { ideal: 2160 }, facingMode: "user", }; const { width } = useWindowDimensions(); @@ -315,11 +315,11 @@ const CoverImageEditModal = ({ <> ) : ( From 7c12c89cc244c9c257b273b5089afb317fdd7cda Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Tue, 6 Feb 2024 23:01:55 +0530 Subject: [PATCH 3/3] revert: replicate changes in cover image --- src/Components/Facility/CoverImageEditModal.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Facility/CoverImageEditModal.tsx b/src/Components/Facility/CoverImageEditModal.tsx index 4edc389f794..8de463ad9b5 100644 --- a/src/Components/Facility/CoverImageEditModal.tsx +++ b/src/Components/Facility/CoverImageEditModal.tsx @@ -47,8 +47,8 @@ const CoverImageEditModal = ({ const FACING_MODE_ENVIRONMENT = { exact: "environment" }; const [facingMode, setFacingMode] = useState(FACING_MODE_USER); const videoConstraints = { - width: { ideal: 4096 }, - height: { ideal: 2160 }, + width: 1280, + height: 720, facingMode: "user", }; const { width } = useWindowDimensions(); @@ -315,11 +315,11 @@ const CoverImageEditModal = ({ <> ) : (