increase image resolution
This commit is contained in:
parent
ad298878cc
commit
20831dbd61
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue