Skip to content

Commit

Permalink
replicate changes in cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Feb 6, 2024
1 parent ba1b360 commit 98a7430
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/Facility/CoverImageEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const CoverImageEditModal = ({
const FACING_MODE_ENVIRONMENT = { exact: "environment" };
const [facingMode, setFacingMode] = useState<any>(FACING_MODE_USER);
const videoConstraints = {
width: 1280,
height: 720,
width: { ideal: 4096 },
height: { ideal: 2160 },
facingMode: "user",
};
const { width } = useWindowDimensions();
Expand Down Expand Up @@ -315,11 +315,11 @@ const CoverImageEditModal = ({
<>
<Webcam
audio={false}
height={720}
screenshotFormat="image/jpeg"
width={1280}
ref={webRef}
videoConstraints={{ ...videoConstraints, facingMode }}
forceScreenshotSourceSize
screenshotQuality={1}
/>
</>
) : (
Expand Down

0 comments on commit 98a7430

Please sign in to comment.