increase image resolution

This commit is contained in:
Nate 2024-11-27 13:00:36 -08:00
parent ad298878cc
commit 20831dbd61

View file

@ -131,9 +131,10 @@ const HoverTextDiv = styled.div`
justify-content: center;
`;
const IMAGE_RESOLUTION = 1024;
function getDataUrlForFile(file: File, img): string {
const targetWidth = 512;
const targetHeight = 512;
const targetWidth = IMAGE_RESOLUTION;
const targetHeight = IMAGE_RESOLUTION;
const scaleFactor = Math.min(
targetWidth / img.width,
targetHeight / img.height,