feat(api): Allow animated media to be uploaded

This commit is contained in:
Jesse Wierzbinski 2024-06-16 01:15:49 -10:00
parent d33a61e713
commit 6ef3a854d9
No known key found for this signature in database

View file

@ -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
| "jpeg"