wa-sticker-formatter icon indicating copy to clipboard operation
wa-sticker-formatter copied to clipboard

sticker from video or gif is generated with a strange effect

Open erickythierry opened this issue 2 years ago • 1 comments

the sticker looks like the example below:

ezgif com-gif-maker

any way to fix or avoid this weird effect?

my code:

const sticker = new Sticker(buffer, {
    pack: 'thierry', // The pack name
    author: 'bot thierry', // The author name
    type: StickerTypes.FULL, // The sticker type
    categories: ['🤩', '🎉'], // The sticker category
    id: '1234', // The sticker id
    quality: 50, // The quality of the output file
})
await sticker.toFile('./static/sticker.webp')

erickythierry avatar Dec 13 '21 19:12 erickythierry

https://github.com/AlenSaito1/wa-sticker-formatter/pull/29 Future fix

AlenVelocity avatar Dec 14 '21 06:12 AlenVelocity

any update for this? also, my phone can't play animate sticker that was generated

noxzym avatar Dec 07 '22 04:12 noxzym

This issue was fixed a while ago.

You can try decreasing the quality. Whatsapp will only play animated stickers if the size is 1MB or less

AlenVelocity avatar Dec 07 '22 12:12 AlenVelocity