Skip to content

Commit

Permalink
fix: skip copy Exif metadata when fails #187
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaldcwl committed May 29, 2023
1 parent e037021 commit f6250a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.3 (TBC 2023)
* fixed: skip copy Exif metadata when fails [#187](https://github.com/Donaldcwl/browser-image-compression/issues/187)

## 2.0.2 (6 Mar 2023)
* fixed: node version restriction [#185](https://github.com/Donaldcwl/browser-image-compression/issues/185)

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function imageCompression(file, options) {
if (process.env.BUILD === 'development') {
console.log('copyExifWithoutOrientation');
}
compressedFile = copyExifWithoutOrientation(file, compressedFile);
compressedFile = await copyExifWithoutOrientation(file, compressedFile);
}
} catch (e) {
if (process.env.BUILD === 'development') {
Expand Down

0 comments on commit f6250a5

Please sign in to comment.