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) },