Skip to content

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…

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 P…

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. …