i have made python program to make barcode and write on it by using python-barcode,PIL library now i use PIL to resize image then write on it example:
with image.open("namr"+".png") as img:
img=img.resize((143,76),PIL.Image.LANCZOS)
img.save(file="file.png")
now i want the barcode to be in sticker 3.8×2 cm but when i resize barcode it pixelated i want it to be clear to be printed and scanned to be on products
i tried using Image.LANCZOS but didnt work
New contributor
Hamoda Elemary is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.