Skip to content

Commit

Permalink
feat: retain image metadata after compression (#6320)
Browse files Browse the repository at this point in the history
* chore: bump browser-image-compression to 2.0.2

* feat: preserve exif when image is compressed
  • Loading branch information
foochifa authored May 15, 2023
1 parent bc1c5e3 commit c2cd33f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@stripe/stripe-js": "^1.44.1",
"axios": "^1.2.1",
"broadcast-channel": "^4.13.0",
"browser-image-compression": "^2.0.0",
"browser-image-compression": "^2.0.2",
"comlink": "^4.3.1",
"country-flag-icons": "^1.4.19",
"csv-string": "^4.1.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/Field/Attachment/Attachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const Attachment = forwardRef<AttachmentProps, 'div'>(
maxWidthOrHeight: 1440,
initialQuality: 0.8,
useWebWorker: false,
preserveExif: true,
}).then((blob) =>
onChange(
new File([blob], acceptedFile.name, {
Expand Down

0 comments on commit c2cd33f

Please sign in to comment.