remove animated to webp

This commit is contained in:
Marcelo Assis 2025-03-26 13:09:08 -03:00
parent 658dae0b59
commit 9710fbdac4

View File

@ -2706,7 +2706,7 @@ export class BaileysStartupService extends ChannelStartupService {
const isAnimated = this.isAnimated(image, imageBuffer);
if (isAnimated) {
return await sharp(imageBuffer, { animated: true }).webp({ quality: 80, animated: true }).toBuffer();
return await sharp(imageBuffer, { animated: true }).webp({ quality: 80 }).toBuffer();
} else {
return await sharp(imageBuffer).webp().toBuffer();
}