Skip to content
Advertisement

Tag: qr-code

How do I change the colour of my QR code?

I want to make a QR code with python. The output is a white background with a black qr code. How do I change both of them? Answer pyqrcode module has not been updated for over 5 years. Use qrcode module instead. Note that qrcode module requires Pillow module. Note that I pass the photo and subject to showcode() instead

python generate QR code png without file output

I am using pypng and pyqrcode for QR code image generation in django app. When I call getQrWithURL with a url, it produces a file url.png to my directory. Is there a way to only get the image data without producing a file output? thanks for your help. Answer Use a BytesIO as a writable stream: Your variable PNG now

module ‘qrcode’ has no attribute ‘make’

While integrating python library qrcode==6.1 with django==3.1.2. I have been trying to generate a qrcode which will contain the URL links for my other websites. Models.py But It always display an error saying that module ‘qrcode’ doesnot contain any attribute named ‘make()’. I want to know how to resolve this? Answer Make sure there are not any files named qrcode.py

Datamatrix code generation with python

I need to “encode” a string into a Datamatrix code image, and am struggling the whole day to find a way (library) to do it. Does anyone know a good python library for Datamatrix code generation? Or a way to do it?” Thanks! Answer Elaphe library for barcode generation has datamatrix support. Also, there is pylibdmtx

Advertisement