mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 08:48:19 +01:00
feat(api): ✨ Allow animated media to be uploaded
This commit is contained in:
parent
d33a61e713
commit
6ef3a854d9
|
|
@ -80,7 +80,9 @@ export class MediaConverter {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sharpCommand = sharp(await media.arrayBuffer());
|
const sharpCommand = sharp(await media.arrayBuffer(), {
|
||||||
|
animated: true,
|
||||||
|
});
|
||||||
|
|
||||||
const commandName = toMime.split("/")[1] as
|
const commandName = toMime.split("/")[1] as
|
||||||
| "jpeg"
|
| "jpeg"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue