Skip to content

Commit f6250a5

Browse files
committed
fix: skip copy Exif metadata when fails #187
1 parent e037021 commit f6250a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.0.3 (TBC 2023)
2+
* fixed: skip copy Exif metadata when fails [#187](https://github.com/Donaldcwl/browser-image-compression/issues/187)
3+
14
## 2.0.2 (6 Mar 2023)
25
* fixed: node version restriction [#185](https://github.com/Donaldcwl/browser-image-compression/issues/185)
36

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function imageCompression(file, options) {
101101
if (process.env.BUILD === 'development') {
102102
console.log('copyExifWithoutOrientation');
103103
}
104-
compressedFile = copyExifWithoutOrientation(file, compressedFile);
104+
compressedFile = await copyExifWithoutOrientation(file, compressedFile);
105105
}
106106
} catch (e) {
107107
if (process.env.BUILD === 'development') {

0 commit comments

Comments
 (0)