mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: use animation
This commit is contained in:
1 parent
dda63830ec
commit
35275d4aa8
1 file changed
+1
-1
@@ -15,7 +15,7 @@ export async function imageProxy(url: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const buffer = await response.arrayBuffer();
|
const buffer = await response.arrayBuffer();
|
||||||
const image = sharp(buffer);
|
const image = sharp(buffer, { animated: true });
|
||||||
const webp = await image.webp().toBuffer();
|
const webp = await image.webp().toBuffer();
|
||||||
const array = new Uint8Array(webp);
|
const array = new Uint8Array(webp);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user