Improved image handling
The given image is now rotated by 90 deg when attempting to send it to the epaper. This function was initally in main, but has been shifted.
This commit is contained in:
parent
ebe60b303b
commit
8ea8f6cfa4
@ -39,9 +39,10 @@ class EPD:
|
||||
|
||||
def getbuffer(self, image):
|
||||
"""ad-hoc"""
|
||||
image = image.rotate(90, expand=True)
|
||||
image.convert('RGB').save(images+'canvas.bmp', 'BMP')
|
||||
command = 'sudo {}IT8951/IT8951 0 0 {}'.format(driver_dir, images+'canvas.bmp')
|
||||
print(command)
|
||||
#print(command)
|
||||
return command
|
||||
|
||||
def setup(self):
|
||||
|
Loading…
Reference in New Issue
Block a user