From 0b0216d4cc0e60245565cdc9dfe50d35fa901a28 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Fri, 26 Jan 2024 13:10:03 +0700 Subject: [PATCH] feat: add gif to convertTypes --- src/utils/image.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/image.ts b/src/utils/image.ts index 731795ee9..2667188aa 100644 --- a/src/utils/image.ts +++ b/src/utils/image.ts @@ -10,6 +10,7 @@ export function resizeImage(file: File | Blob): Promise | File | Bl maxHeight: 900, // images with size larger than this will be converted to jpeg convertSize: MAX_IMAGE_SIZE, + convertTypes: ['image/png', 'image/gif'], success: file => { resolve(file as File) },