heuer / segno

Python QR Code and Micro QR Code encoder
https://pypi.org/project/segno/
BSD 3-Clause "New" or "Revised" License
624 stars 54 forks source link

upable to load image in vcard qrcode #121

Open macmichael01 opened 1 year ago

macmichael01 commented 1 year ago

The make_vcard method has a parameter called photo_uri. After generating a qrcode and scanning it via an iphone, the photo does not appear on the contact card.

Sample code:

from segno import helpers
qrcode = helpers.make_vcard(displayname='No Photo', 
                             name=";No Photo",
                             org="No Photo",
                             memo="no photo",
                             email='no@photo.com',
                             photo_uri="https://no-photo.com/no-photo.png",
                             )
qrcode.save('/Users/no-photo/Desktop/no-photo.svg', scale=5, data_dark="#7a1fa1", dark="#512da8")

How it looks on the iPhone: IMG_7508