robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
120 stars 12 forks source link

Issues sending images #88

Closed danielpmd closed 1 month ago

danielpmd commented 1 month ago

Hello,

Sending text message is working great. The code below is ok:

npx mudslide send 0000000000000 "test"

However, I am having issues sending images. I tried the following command:

npx mudslide send-image 0000000000000 car.png

But at the receiver's WhatsApp the image was not received properly and user cannot open it (ckeck attached image).

Screen

Could you assist me on that?

Regards.

robvanderleek commented 1 month ago

Hi @danielpmd

Sorry to hear Mudslide is not working as expected.

I've just tried this command:

npx mudslide@latest send-image me Screenshot\ 2024-05-07\ at\ 15.48.54.png

and the image shows fine for me.

Can you perhaps try it with a different image? Or different format, such as JPEG?

danielpmd commented 1 month ago

Hello,

I tried with a different image file and it worked properly! I tried with both .jpg and .png (both worked). Maybe the previous file was corrupted. Sorry for that, my bad.

Just a question, whats the difference running mudslide with:

??

Regards.

robvanderleek commented 1 month ago

npx installs and runs a NodeJS package from https://npmjs.com. If you use the suffix @latest then npx will always check if there's a more recent version available, if you don't use that suffix a version from your cache is used.

There are also binaries released for every mudslide version that you can use, these are called mudslide.exe, mudslide-linuxstatic-x64 etc.

Hope this answers your questions.

danielpmd commented 1 month ago

Thanks a lot for your support.