소스 검색

fix: Image.ANTIALIAS deprecated

Owen Diffey 3 년 전
부모
커밋
0c2765ca06
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()