mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 797 forks source link

QR not readable #139

Open rajitbansal opened 6 years ago

rajitbansal commented 6 years ago

I am getting QR as image using get_qr . it goes to /tmp directory. But whatsapp is not reading that image ..

please check ..

albaizzz commented 6 years ago

same issue, please check. qr code not readable when read via whastapp apps.

nugroho-s commented 6 years ago

Same issue. Changed it to driver.screenshot() and now it works for me just fine.

alfred82santa commented 6 years ago

You must instantiate driver with param loadstyles set to true.

angelorodem commented 6 years ago

It heppens when the Qr doesent have the Whatsapp logo in the middle, load the full page using loadstyles to work

fyudelgado commented 6 years ago

Hi there, I update the code, and this issue still happens, I already set loadstyles = True, and now only create the Qr_Code Image at 1/5 part of the whole image.

So if I add these parameters to the contructor of the object WhatsAPIDriver>

driver = WhatsAPIDriver(client='firefox', username='API', proxy=None, command_executor=None, loadstyles=True, profile=None, headless=True, autoconnect=True, logger=None, extra_params=None, chrome_options=None)

The image appears completely but cant be read by the whatsapp client.

Any Suggestions?

Elintondm commented 6 years ago

I have the same problem here i cant read the qr code from the get_qr function

Elintondm commented 6 years ago

@angelorodem the image generated with the get_qr have the whatsapp logo in the midle so the problem is otherthing.

angelorodem commented 6 years ago

It happens also when the image doesn't have white borders, try adding some white margin, i had this problem and after adding white borders it was fixed.

Elintondm commented 6 years ago

@angelorodem my code get image from the function get_qr and sends an email to me. How could I add this white border before attach my image?

angelorodem commented 6 years ago

first google link https://stackoverflow.com/questions/11142851/adding-borders-to-an-image-using-python

wonderful tool of the new age https://www.google.com/ 😀