mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Added fixed tabs
This commit is contained in:
		| @@ -104,16 +104,18 @@ class Escpos: | |||||||
|         """ Open image file """ |         """ Open image file """ | ||||||
|         im_open = Image.open(path_img) |         im_open = Image.open(path_img) | ||||||
|         im = im_open.convert("RGB") |         im = im_open.convert("RGB") | ||||||
|  |         # Convert the RGB image in printable image | ||||||
|         self._convert_image(im) |         self._convert_image(im) | ||||||
|  |  | ||||||
|  |  | ||||||
|     def qr(self,text): |     def qr(self,text): | ||||||
|         """ Print QR Code for the provided string """ |         """ Print QR Code for the provided string """ | ||||||
|         qr_code = qrcode.QRCode(version=4, box_size=4, border=1) |         qr_code = qrcode.QRCode(version=4, box_size=4, border=1) | ||||||
| 	qr_code.add_data(text) |         qr_code.add_data(text) | ||||||
| 	qr_code.make(fit=True) |         qr_code.make(fit=True) | ||||||
| 	qr_img = qr_code.make_image() |         qr_img = qr_code.make_image() | ||||||
|         im = qr_img._img.convert("RGB") |         im = qr_img._img.convert("RGB") | ||||||
|  |         # Convert the RGB image in printable image | ||||||
|         self._convert_image(im) |         self._convert_image(im) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Manuel F Martinez
					Manuel F Martinez