mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 11:22:21 -06:00
remove animated to webp
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user