@ryuu-reinzz/haruka-lib 2.0.8 → 2.1.0
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.
|
@@ -4,7 +4,7 @@ import webp from 'node-webpmux';
|
|
|
4
4
|
* @param {Buffer}image - The image buffer to extract metadata from
|
|
5
5
|
*/
|
|
6
6
|
const WebP = webp;
|
|
7
|
-
export const
|
|
7
|
+
export const extractMetadata = async (image) => {
|
|
8
8
|
const img = new WebP();
|
|
9
9
|
await img.load(image);
|
|
10
10
|
const exif = img.exif?.toString('utf-8') ?? '{}';
|