@@ -3269,7 +3269,7 @@ def writeLCD1(s, im, quality, SAVE=True):
32693269 s.im[im].save("/tmp/usbtft-bmp", "BMP")
32703270 if "1" in LCD4linux.SavePicture.value and SAVE == True:
32713271 if str(LCD4linux.LCDRotate1.value) != "0":
3272- s.im[im] = s.im[im].rotate(-int(LCD4linux.LCDRotate1.value))
3272+ s.im[im] = s.im[im].rotate(-int(LCD4linux.LCDRotate1.value), expand=True )
32733273 s.im[im].save(bild, "PNG" if LCD4linux.BilderTyp.value == "png" else "JPEG")
32743274 if isfile(bild):
32753275 rename(bild, "%s.png" % PIC)
@@ -11722,7 +11722,7 @@ def putClock(workaround, draw, im):
1172211722 else:
1172311723 pil_image = pil_image.resize((x1, y1), Image.LANCZOS if PY3 else Image.ANTIALIAS)
1172411724 S = int(strftime("%H")) % 12
11725- pil_image = pil_image.rotate(360 - int(30 * S + int(int(strftime("%M")) / 2)), expand=True ).convert("RGBA") # 360/12
11725+ pil_image = pil_image.rotate(360 - int(30 * S + int(int(strftime("%M")) / 2)), expand=False ).convert("RGBA") # 360/12
1172611726 self.im[im].paste(pil_image, (POSX + int((x - x1) / 2), ConfigPos + int((y - y1) / 2)), pil_image)
1172711727 # Minute
1172811728 pil_image = Image.open(Clock + str(ConfigAnalog) + "/Minute.png")
@@ -11733,7 +11733,7 @@ def putClock(workaround, draw, im):
1173311733 pil_image = pil_image.resize((x1, y1))
1173411734 else:
1173511735 pil_image = pil_image.resize((x1, y1), Image.LANCZOS if PY3 else Image.ANTIALIAS)
11736- pil_image = pil_image.rotate(360 - int(6 * int(strftime("%M"))), expand=True ).convert("RGBA") # 360/60
11736+ pil_image = pil_image.rotate(360 - int(6 * int(strftime("%M"))), expand=False ).convert("RGBA") # 360/60
1173711737 self.im[im].paste(pil_image, (POSX + int((x - x1) / 2), ConfigPos + int((y - y1) / 2)), pil_image)
1173811738 # Seconds: Due to the bad refresh rates, the second hand was deliberately not programmed!
1173911739 # Date underneath clockface
0 commit comments