Closed dandyraka closed 2 years ago
Update:
Maybe because filesize. The original webp is 1MB, when I try to optimize using ezgif.com here and the filesize become 615KB it work no error.
I think this is due to the encoding of the file?
it comes up as a data:image/octet-stream;
. I'll try to carve out some sort of workaround for this in the meantime. But yeah, best to keep stickers under 1mb. Do some compression. Also, sendImageAsSticker
does this for you even on webp files - it also encodes the image properly.
@github-actions run
@smashah
Still same error (open-wa v4.33.7), I check the mimetype is image/webp
and when I use sendImageAsSticker
show error like this, maybe because it's animated webp.
How to compress animated webp?
I test like this, send as document not image
Solved using sharp
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Business account
Mode
My own code
Current Behavior
Found error when I try this webp here. I don't know why.
Expected Behavior
send webp sticker normally
Steps To Reproduce
run the script
create() code
No response
DEBUG INFO
Environment
Screenshots/Logs
Error: Evaluation failed: a at ExecutionContext._evaluateInternal (C:\laragon\www\wabot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (C:\laragon\www\wabot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
Anything else?
No response