Skip to content

Commit

Permalink
feat: add gif to convertTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 26, 2024
1 parent 3824a87 commit 0b0216d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function resizeImage(file: File | Blob): Promise<File | Blob> | 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)
},
Expand Down

0 comments on commit 0b0216d

Please sign in to comment.