From 668ee5906555dd794bbb5faf1db504a100f4e450 Mon Sep 17 00:00:00 2001 From: foochifa Date: Mon, 15 May 2023 13:40:04 +0800 Subject: [PATCH] feat: preserve exif when image is compressed --- frontend/src/components/Field/Attachment/Attachment.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/Field/Attachment/Attachment.tsx b/frontend/src/components/Field/Attachment/Attachment.tsx index 2fb56564df..5176260a9a 100644 --- a/frontend/src/components/Field/Attachment/Attachment.tsx +++ b/frontend/src/components/Field/Attachment/Attachment.tsx @@ -155,6 +155,7 @@ export const Attachment = forwardRef( maxWidthOrHeight: 1440, initialQuality: 0.8, useWebWorker: false, + preserveExif: true, }).then((blob) => onChange( new File([blob], acceptedFile.name, {