mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
lint fix
This commit is contained in:
@@ -2706,9 +2706,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
const isAnimated = this.isAnimated(image, imageBuffer);
|
const isAnimated = this.isAnimated(image, imageBuffer);
|
||||||
|
|
||||||
if (isAnimated) {
|
if (isAnimated) {
|
||||||
return await sharp(imageBuffer, { animated: true })
|
return await sharp(imageBuffer, { animated: true }).webp({ quality: 80, animated: true }).toBuffer();
|
||||||
.webp({ quality: 80, animated: true })
|
|
||||||
.toBuffer();
|
|
||||||
} else {
|
} else {
|
||||||
return await sharp(imageBuffer).webp().toBuffer();
|
return await sharp(imageBuffer).webp().toBuffer();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user