@ryuu-reinzz/haruka-lib 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import web from 'node-webpmux';
|
|
2
1
|
import { TextEncoder } from 'util';
|
|
3
2
|
import RawMetadata from './RawMetadata.js';
|
|
4
|
-
|
|
3
|
+
import WebPMux from 'node-webpmux';
|
|
4
|
+
const { Image } = WebPMux;
|
|
5
5
|
export default class Exif {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
this.exif = null;
|
|
@@ -23,7 +23,7 @@ export default class Exif {
|
|
|
23
23
|
image instanceof Image
|
|
24
24
|
? image
|
|
25
25
|
: await (async () => {
|
|
26
|
-
const img = new
|
|
26
|
+
const img = new Image();
|
|
27
27
|
await img.load(image);
|
|
28
28
|
return img;
|
|
29
29
|
})();
|