Browse Source

fix: Image.ANTIALIAS deprecated

Owen Diffey 3 years ago
parent
commit
0c2765ca06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      musare-dl.py

+ 1 - 1
musare-dl.py

@@ -284,7 +284,7 @@ with alive_bar(songsCount, title=f"{bcolors.BOLD}{bcolors.OKCYAN}musare-dl{bcolo
                     img = Image.open(request.urlopen(imgRequest))
                     img.save(f"images/{fileName}.jpg", "JPEG")
                     if outputFormat == "audio":
-                        thumb = img.resize((32, 32), Image.ANTIALIAS)
+                        thumb = img.resize((32, 32), Image.Resampling.LANCZOS)
                         thumb.save(f"images/{fileName}.thumb.jpg", "JPEG")
                         imgData = open(f"images/{fileName}.jpg", "rb").read()
                         thumbData = open(f"images/{fileName}.thumb.jpg", "rb").read()