I would like to encode a Data Matrix (a kind of QR Code) and export it in .svg vectorized format.
The following program only allows the export in an "image" type extension such as jpg, png or even tif.
from pylibdmtx.pylibdmtx import encode
from PIL import Image
encoded_data = encode('wasi0013'.encode('utf-8'))
img = Image.frombytes('RGB', (encoded_data.width, encoded_data.height), encoded_data.pixels)
img.save("wasi0013.png")
Would you know how to proceed?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…