Skip to content

Commit

Permalink
chore: increase max height for image compression
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 19, 2024
1 parent a8598cb commit 173056f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export function resizeImage(file: File | Blob): Promise<File | Blob> | File | Bl
return new Promise(resolve => {
new Compressor(file, {
maxWidth: 1920,
maxHeight: 1024,
quality: 0.9,
maxHeight: 1920,
success: file => {
resolve(file as File)
},
Expand Down

0 comments on commit 173056f

Please sign in to comment.