Add rotation support, update readme

This commit is contained in:
AndBondStyle
2023-11-01 06:08:59 +03:00
parent e75ec6e330
commit 0f744cd2c5
6 changed files with 53 additions and 29 deletions
-2
View File
@@ -101,8 +101,6 @@ class PrinterClient:
self._packetbuf = bytearray()
def print_image(self, image: Image, density: int = 3):
# Internally, we're slicing the image vertically, so it's convenient to rotate
image = image.transpose(Image.ROTATE_270)
self.set_label_density(density)
self.set_label_type(1)
self.start_print()