mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
remove animated to webp
This commit is contained in:
parent
658dae0b59
commit
9710fbdac4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user