Comments (4)
IMO MeCards don't provide images…
Please provide more information how you created the MeCard and what you expected.
from segno.
Okk I tried it in vcard using photo_uri and it Gave error Data too large
DataOverflowError at /api/makeresume
Data too large. No QR Code can handle the provided data
def resume_qr(request):
if request.method == 'POST':
print("1")
name = request.POST.get('name')
email = request.POST.get('email')
phone = request.POST.get('phone')
background = request.FILES.get('image')
url = request.POST.get('url')
country = request.POST.get('country')
city = request.POST.get('city')
title = request.POST.get('title')
color = request.POST.get('color')
qrcode_v = helpers.make_vcard(
name=name,
photo_uri = background,
displayname=name,
email= email,
phone= phone,
url=url,
country=country,
city=city,
title=title
)
from segno.
The problem are these lines here:
background = request.FILES.get('image')
photo_uri = background,
You shouldn't use the image data but the image URL:
qrcode_v = helpers.make_vcard(
name=name,
photo_uri = 'https://www.example.org/path/to/the/image'
displayname=name,
email= email,
phone= phone,
url=url,
country=country,
city=city,
title=title
)
from segno.
okk Thanks 👍
from segno.
Related Issues (20)
- Drop Python 2.7 support? HOT 2
- Remove option to return Micro QR codes from segno.make
- Limitations on the maximum number of characters that can be entered HOT 4
- Custom QR Codes with Logo HOT 5
- Segno GUI and Windows prebuilt executables HOT 2
- Creating QR Codes with Multiple Data Modes HOT 2
- url info not importing via QR vCard HOT 2
- Is it possible to round the edges HOT 2
- upable to load image in vcard qrcode
- Unable to create QR codes with modes less than binary/'bytes' HOT 2
- Malformed padding when number of bits is a multiple of 8 HOT 3
- reduce size of output HOT 1
- FYI - Deprecated warnings with: python -m build --wheel
- Fix for pillow 10
- pkg_resources is deprecated as an API.
- Unable to animate qr using .to_artistic() HOT 6
- Remove plugin system
- The default iso-8859-1 encoding unsafe, can be misdecoded by zbar as Big5 (was: Unicode-related test failures on musl libc) HOT 14
- Online demo using this library HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segno.