From 20831dbd61b7849de01d44f95e6fe130b3e30306 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 27 Nov 2024 13:00:36 -0800 Subject: [PATCH] increase image resolution --- gui/src/components/mainInput/TipTapEditor.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index e5d982626..1bcc9072d 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -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,