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,