Skip to content

Commit

Permalink
[TMDb]
Browse files Browse the repository at this point in the history
* use Image.LANCZOS instead of Image.ANTIALIAS for pil
  • Loading branch information
jbleyel committed Jan 2, 2024
1 parent a85895c commit 703d942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmdb/src/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def saveCover(self):
width, height = config.plugins.tmdb.coverQuality.value.split("x", 1)
img = Image.open(self.coverName)
img = img.convert('RGBA', colors=256)
img = img.resize((int(width), int(height)), Image.ANTIALIAS)
img = img.resize((int(width), int(height)), Image.LANCZOS)
img.save(self.coverName) # img.save(f, quality=75)

shutil.copy(self.coverName, saveFile + ".jpg")
Expand All @@ -850,7 +850,7 @@ def saveBackdrop(self):
width, height = config.plugins.tmdb.backdropQuality.value.split("x", 1)
img = Image.open(backdropName)
img = img.convert('RGBA', colors=256)
img = img.resize((int(width), int(height)), Image.ANTIALIAS)
img = img.resize((int(width), int(height)), Image.LANCZOS)
img.save(backdropName) # img.save(f, quality=75)

shutil.copy(backdropName, saveFile + ".bdp.jpg")
Expand Down

0 comments on commit 703d942

Please sign in to comment.