Open rajitbansal opened 6 years ago
same issue, please check. qr code not readable when read via whastapp apps.
Same issue. Changed it to driver.screenshot() and now it works for me just fine.
You must instantiate driver with param loadstyles
set to true.
It heppens when the Qr doesent have the Whatsapp logo in the middle, load the full page using loadstyles to work
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?
I have the same problem here i cant read the qr code from the get_qr function
@angelorodem the image generated with the get_qr have the whatsapp logo in the midle so the problem is otherthing.
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.
@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?
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/ 😀
I am getting QR as image using get_qr . it goes to /tmp directory. But whatsapp is not reading that image ..
please check ..